GEROUX Y GEROUY ZILA X EVA Y SETH X ADAO Y SETH Realizando perguntas para o

Geroux y gerouy zila x eva y seth x adao y seth

This preview shows page 59 - 83 out of 83 pages.

? – GEROU(X, Y), GEROU(Y, ZILA); X = EVA, Y = SETH; X = ADAO, Y = SETH;
Image of page 59

Subscribe to view the full document.

Realizando perguntas para o Prolog QUAL É A AVÓ DE ZILA? ? – GEROU(X, Y), GEROU(Y, ZILA), FEMININO( X ). X = EVA, COMO POSSO SABER QUE UMA PESSOA É IRMÃ DA OUTRA? ? – GEROU(X, ZILA), GEROU(X, ENZO). X = SETH. QUEREMOS SABER SE ENZO TEM UM IRMÃO(Ã). ? – GEROU(X, Y), GEROU(X, ENZO). X = SETH, Y = ZILA; X = SETH, ENZO.
Image of page 60
Realizando perguntas para o Prolog QUEREMOS SABER SE ENZO TEM UM IRMÃ. ? – GEROU(X, Y), GEROU(X, ENZO), FEMININO(Y). X = EVA, Y = ZILA.
Image of page 61

Subscribe to view the full document.

#BASE DE CONHECIMENTO – FATOS GEROU(EVA, SETH). GEROU(ADAO, SETH). GEROU(ADAO, MARIA). GEROU(SETH, ZILA). GEROU(SETH, ENZO). GEROU(ENZO, NOAH). FEMININO(EVA). FEMININO(MARIA). MASCULINO(ADAO). MASCULINO(SETH). FEMININO(ZILA). MASCULINO(ENZO). MASCULINO(NOAH). FILHO (Y, X) :- GEROU(X, Y) . Y É FILHO DE X SE X GEROU O Y É UMA FORMA DE EVITAR O GEROU
Image of page 62
Realizando perguntas para o Prolog QUERO SABER SE NOAH É FILHO DE ENZO. ? -FILHO(NOAH, ENZO). – TRUE ? - FILHO(NOAH, ADAO) – FALSO ? - QUAIS SÃO OS FILHOS DE ADAO FILHO(X, ADAO). X = ZILA, X = MARIA.
Image of page 63

Subscribe to view the full document.

#BASE DE CONHECIMENTO – FATOS GEROU(EVA, SETH). GEROU(ADAO, SETH). GEROU(ADAO, MARIA). GEROU(SETH, ZILA). GEROU(SETH, ENZO). GEROU(ENZO, NOAH). FEMININO(EVA). FEMININO(MARIA). MASCULINO(ADAO). MASCULINO(SETH). FEMININO(ZILA). MASCULINO(ENZO). MASCULINO(NOAH). FILHO (Y, X) :- GEROU(X, Y) Y É FILHO DE X SE X GEROU O Y É UMA FORMA DE EVITAR O GEROU MAE(X, Y) :- GEROU(X, Y) , FEMININO(X) CRIADO REGRA PARA ACHAR MAE
Image of page 64
Realizando perguntas para o Prolog ? – MAE(X, SETH). X = EVA. ? – MAE( X, NOAH). – FALSO.
Image of page 65

Subscribe to view the full document.

#BASE DE CONHECIMENTO – FATOS GEROU(EVA, SETH). GEROU(ADAO, SETH). GEROU(ADAO, MARIA). GEROU(SETH, ZILA). GEROU(SETH, ENZO). GEROU(ENZO, NOAH). FEMININO(EVA). FEMININO(MARIA). MASCULINO(ADAO). MASCULINO(SETH). FEMININO(ZILA). MASCULINO(ENZO). MASCULINO(NOAH). FILHO (Y, X) :- GEROU(X, Y) Y É FILHO DE X SE X GEROU O Y É UMA FORMA DE EVITAR O GEROU MAE(X, Y) :- GEROU(X, Y) , FEMININO(X) CRIADO REGRA PARA ACHAR MAE AVOS(X, Z) :- GEROU(X, Y), GEROU(Y, Z). CRIADO REGRA PARA ACHAR AVOS
Image of page 66
Realizando perguntas para o Prolog ? – AVOS(X, ZILA). X = EVA, X = ADAO.
Image of page 67

Subscribe to view the full document.

Image of page 68
Image of page 69

Subscribe to view the full document.

Image of page 70
Image of page 71

Subscribe to view the full document.

Image of page 72
Image of page 73

Subscribe to view the full document.

Image of page 74
Image of page 75

Subscribe to view the full document.

Image of page 76
Image of page 77

Subscribe to view the full document.

Image of page 78
Image of page 84
  • Summer '19
  • Arthur Mariano
  • Lógica, Inteligencia artificial, Biblioteca, Computador, informação

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes