Giter Club home page Giter Club logo

prob_hunting's Introduction

Packages used : Tkinter - for visualisation, Matplotlib - for plots, Numpy - for array manipulation

Naming of files: There is a file corresponding to each part of both questions. If you want to see the output for any part, go to the corresponding file and run the main() method in that file.

There are some files with the suffix - ‘Demo’. Run these main() method in these files if you want to see the animations for each search rule.

Main Classes : HuntingApp - This class is for the App inheriting from tkinter’s Tk class and is used for animating the search process.

ProbabilisticHunting : This class is the base class for all other classes for Question 1 and Question 2

ProbabilisticHunting_TargetPresent - This class implements the search behaviour which chooses the cell with maximum probability of the target being present in it.

ProbabilisticHunting_TargetFound - This class implements the search behaviour which chooses the cell with maximum probability of the target being found in it

ProbabilisticHunting_WithCost_Rule1 - This class implements the search behaviour which takes into account the cost of moving as well as the belief for the target being present in that cell (Rule 1 with cost for moving)

ProbabilisticHunting_WithCost_Rule2 - This class implements the search behaviour which takes into account the cost of moving as well as the belief for the target being found in that cell. (Rule 2 with cost for moving)

ProbabilisticHuntingPart2: This class is for part 2 of the assignment where the target moves after every iteration. Implemented with Rule1 and Rule2. Function def inline. Code returns average times for searches required for searching the same map with Rule1 and Rule2 for a moving target.

prob_hunting's People

Contributors

aniketanvit avatar karrnb avatar

Watchers

 avatar  avatar  avatar

Forkers

karrnb

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.