Skip to content

DivyaGodayal/Inference-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Inference-Engine

After the high-profile lawsuit in which you succeeded to bring RealityMan to justice after proving that distributing his Nintendo emulator was a criminal act, everyone wants to hire you! From disputes over tech patents, to lawsuits on questions of privacy in social media, to suits on liability issues with self-driving cars, to disputes between Hollywood celebrities and their agents or producers, you are just running out of time and energy to run all these cases by hand like we have done in the lectures.

Because of the highly sensitive nature of the cases you handle, and because of the extremely high monetary amounts involved, you cannot trust any existing. You thus decide to create your own, ultra-optimized inference engine.

After much debating, you decide that the knowledge bases which you will create to handle each case will contain sentences with the following defined operators: NOT X ~X X OR Y X | Y

Format for input.txt: <NQ = NUMBER OF QUERIES> <QUERY 1> . . . <NS = NUMBER OF GIVEN SENTENCES IN THE KNOWLEDGE BASE> <SENTENCE 1> . . .

Format for output.txt: For each query, determine if that query can be inferred from the knowledge base or not, one query per line: <ANSWER 1> . . . where each answer should be either TRUE if you can prove that the corresponding query sentence is true given the knowledge base, or FALSE if you cannot.

About

Inference Engine using first-order logic resolution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages