Coder Social home page Coder Social logo

namanadlakha3 / an-application-based-on-probability-prediction-using-randomization-algorithms Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 45 KB

An Application based on Probability Prediction using Randomization Algorithms. Where winning probability of player and banker is calculated simultaneously with the simulation of game Baccarat.

License: MIT License

C 91.34% C++ 8.66%
randomization-algorithms probability-prediction monte-carlo las-vegas game-baccarat banker posix-threads simulation gcc-compiler player

an-application-based-on-probability-prediction-using-randomization-algorithms's Introduction

An Application based on Probability Prediction using Randomization Algorithms.

An Application based on Probability Prediction using Randomization Algorithms. Where winning probability of player and banker is calculated simultaneously with the simulation of game Baccarat.

Monte Carlo Algorithm:

Monte Carlo is that class of algorithm which may return the correct result or the incorrect result with some probability. The algorithm resources used in this are often bounded and thus it has a deterministic or fixed run time. It gives better probability results when it is run for a larger number of iterations.

Las Vegas Algorithm:

A Las Vegas algorithm returns the correct or optimum result always, and informs when it fails. Its run time differs at each run since it depends on a random value, even for the same input.

Pthread Library:

POSIX threads or Pthreads are the thread implementations which adhere to this standard. Implementation of pthread is available with GCC compiler and has been used for multithreading. We have implemented all the algorithms in C language with a GCC compiler only.

Baccarat

Baccarat is a game of cards which contains 8 decks. There are 416415414*413 possible cases in first hand which makes it almost impossible to be followed for patterns/predictions. To be able to even calculate the probabilities with a great deal of accuracy, it takes a large amount of time. Hence, it served as a suitable problem statement that could be solved by our algorithms

The following algorithms are implemented in these ways:

1). Las Vegas

2). Las Vegas with Threading (416 POSIX Threads)

3). Monte Carlo

4). Monte Carlo with array of linked lists

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.