Giter VIP home page Giter VIP logo

artificial_intelligence_applications_labs's Introduction

Artificial_intelligence_applications_labs

A repository containing the practical works for the subject "artificial intelligence applications".

Practical work no. 1: Solve the missionaries and cannibals problem using the A* algorithm.

For this I chose to generalise the problem by allowing any number of cannibals, missionaries and any size of the boat. I defined a simple heuristic function h = (M + C)/ B where M is the number of missionaries, C is the number of cannibals (on the left shore) and B is the boat size. Because the boat size is variable I defined a funtion to give back all the possible actions based on the boat size. This implementation is using a priority queue (priority queues are used often when implementing the A* algorithm) by using a built in Python library heapq. I chose to do a dumbed down tree construction and rely on my heuristic function to determine if the problem is solvable with the provided initial conditions. The solution can be found in the file Astar_Missionaries_Cannibals.py and the excel workbook for constructing the algorithm can be found in the file M_C.xlsx

Practical work no. 2: Resolution derivation rule for propositional logic sentences.

The problem is as follows: Given. The external memory (file) contains a set of propositional logic sentences - knowledge base. Sentences are written in the disjunctive form. The number of propositional logic characters, the number of sentences, and the number of disjunctions in sentences can generally vary. Write a program that, with the help of resolution rule, would derive from this knowledge base all the other sentences that can be derived. Print newly derived sentences to a file. Problem file can be found []

artificial_intelligence_applications_labs's People

Contributors

foxicution avatar

Watchers

 avatar

Forkers

vjanu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.