SlideShare a Scribd company logo
1 of 11
Exploring Game of
Roulette
By: Aditya Chimbalkar
Under the guidance of Prof. Lucas Vespa
Graduate Research Seminar
CSC 540
December 1st 2016
About Roulette
• What is Roulette?
• General Overview
• Objective
Algorithm and Code Implementation
Group A
• Identifying Data types
• Use of Functions and Procedures
Group B
• Breakdown of various challenges
• Actual coding
Group C
• Comparing Results
Implementation
• Calculating average frequency of occurrence of a number.
– Occurred Twice and Thrice
• Frequency of occurring twice in a row
• Longest run of Evens and Odds in row.
Challenges faced
• Pascal Language
• Size of the Array
• No Object Oriented support
• Similar to C language
• Good for small programs
Average frequency of occurrences of a
number
0
200
400
600
800
1000
1200
1400
1600
n=100 n=1000 n=10,000 n=100,000 n=1,000,000 n=10,000,000
20 40.63 35.79 38.34 37.18 37.0152
676
805.27
1262.3
1426.53
1362.09
Average Frequnecy of occurrences of a number - Twice in a row Average Frequnecy of occurrences of a number - Thrice in a row
Frequency of number generated twice
in a row.
0
1000000
2000000
3000000
4000000
5000000
6000000
7000000
8000000
9000000
10000000
n=100 n=1000 n=10,000 n=100,000 n=1,000,000 n=10,000,000 n=100,000,000
2 119 8762 98310
998873
9989916 9992605
Frequnecy of number generated - Twice in a row
Frequnecy of number generated - Twice in a row
Longest number of Evens and Odds in
a row
0
0.5
1
1.5
2
2.5
3
3.5
4
n=100 n=1000 n=10,000 n=1,00,000 n=10,00,000 n=10,000,000 n=100,000,000
2
3
2
3
1 1 1
3
1
2 2 2 2
4
Longest number of evens in a row Longest number of odds in a row
Table of Comparison.
Number of Spins
(n)
Average
frequency of
occurrences
of a number
twice in a row
Average
frequency of
occurrences of a
number thrice in
a row
Frequency of
number
generated twice
in a row
Longest
number of
Evens in a row
Longest
number of
Odds in a row
Execution
Time
(seconds)
100 20 52 2 2 3 0.1
1000 40.63 676.00 119 3 1 0.1
10000 35.79 805.27 8762 2 2 0.1
100000 38.34 1262.30 98310 3 2 0.1
1000000 37.18 1426.53 998873 1 2 0.3
10000000 37.03 1345.44 9989916 1 2 0.7
100000000 37.01 1362.09 99926605 1 4 5
Conclusion
• Data Types in Pascal
• Size of an Array
• Input Value increase execution time
• Repetitive occurrences can be predicted
Future Work
• Implementation of different data-structures
• Solving problem of size of an Array
• Implement in Turbo Pascal
Thank you!

More Related Content

Viewers also liked

Presentación1
Presentación1Presentación1
Presentación1rociofs1
 
DRU-VERBAL RESUME 2016
DRU-VERBAL RESUME 2016DRU-VERBAL RESUME 2016
DRU-VERBAL RESUME 2016Dru Verbal
 
Cuándo es necesario ferulizar dientes
Cuándo es necesario ferulizar dientesCuándo es necesario ferulizar dientes
Cuándo es necesario ferulizar dientesmacagr2
 
Saranggola ni Efren R. Abueg
Saranggola ni Efren R. AbuegSaranggola ni Efren R. Abueg
Saranggola ni Efren R. AbuegAlex Jose
 
The Newest in Session Types
The Newest in Session TypesThe Newest in Session Types
The Newest in Session TypesRoland Kuhn
 

Viewers also liked (6)

Presentación1
Presentación1Presentación1
Presentación1
 
DRU-VERBAL RESUME 2016
DRU-VERBAL RESUME 2016DRU-VERBAL RESUME 2016
DRU-VERBAL RESUME 2016
 
Filipino 9 Parabula
Filipino 9 ParabulaFilipino 9 Parabula
Filipino 9 Parabula
 
Cuándo es necesario ferulizar dientes
Cuándo es necesario ferulizar dientesCuándo es necesario ferulizar dientes
Cuándo es necesario ferulizar dientes
 
Saranggola ni Efren R. Abueg
Saranggola ni Efren R. AbuegSaranggola ni Efren R. Abueg
Saranggola ni Efren R. Abueg
 
The Newest in Session Types
The Newest in Session TypesThe Newest in Session Types
The Newest in Session Types
 

Similar to Data Analysis of Roulette Wheel

Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfTulasiramKandula1
 
Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsPeter Solymos
 
Alerting: more signal, less noise, less pain
Alerting: more signal, less noise, less painAlerting: more signal, less noise, less pain
Alerting: more signal, less noise, less painDatadog
 
FREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICS
FREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICSFREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICS
FREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICSAirlangga University , Indonesia
 
Tech day ngobrol santai tensorflow
Tech day ngobrol santai tensorflowTech day ngobrol santai tensorflow
Tech day ngobrol santai tensorflowRamdhan Rizki
 
Ralf Herbrich - Introduction to Graphical models in Industry
Ralf Herbrich - Introduction to Graphical models in IndustryRalf Herbrich - Introduction to Graphical models in Industry
Ralf Herbrich - Introduction to Graphical models in IndustryBayes Nets meetup London
 
02 order of growth
02 order of growth02 order of growth
02 order of growthHira Gul
 
Unidad 2 ejercicios frecuencia1
Unidad 2 ejercicios frecuencia1Unidad 2 ejercicios frecuencia1
Unidad 2 ejercicios frecuencia1AralysRodriguez
 
Machine Learning Essentials Demystified part2 | Big Data Demystified
Machine Learning Essentials Demystified part2 | Big Data DemystifiedMachine Learning Essentials Demystified part2 | Big Data Demystified
Machine Learning Essentials Demystified part2 | Big Data DemystifiedOmid Vahdaty
 
Standard deviation lesson
Standard deviation lessonStandard deviation lesson
Standard deviation lessonAngela Phillips
 
Efficient Implementation of Self-Organizing Map for Sparse Input Data
Efficient Implementation of Self-Organizing Map for Sparse Input DataEfficient Implementation of Self-Organizing Map for Sparse Input Data
Efficient Implementation of Self-Organizing Map for Sparse Input Dataymelka
 
frequency distribution
 frequency distribution frequency distribution
frequency distributionUnsa Shakir
 
Keynote: Machine Learning for Design Automation at DAC 2018
Keynote:  Machine Learning for Design Automation at DAC 2018Keynote:  Machine Learning for Design Automation at DAC 2018
Keynote: Machine Learning for Design Automation at DAC 2018Manish Pandey
 
An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)Julien SIMON
 
jpg image processing nagham salim_as.ppt
jpg image processing nagham salim_as.pptjpg image processing nagham salim_as.ppt
jpg image processing nagham salim_as.pptnaghamallella
 
Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017
Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017
Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017StampedeCon
 
Creating a Custom Serialization Format (Gophercon 2017)
Creating a Custom Serialization Format (Gophercon 2017)Creating a Custom Serialization Format (Gophercon 2017)
Creating a Custom Serialization Format (Gophercon 2017)Scott Mansfield
 

Similar to Data Analysis of Roulette Wheel (20)

Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdf
 
Complex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutionsComplex models in ecology: challenges and solutions
Complex models in ecology: challenges and solutions
 
Alerting: more signal, less noise, less pain
Alerting: more signal, less noise, less painAlerting: more signal, less noise, less pain
Alerting: more signal, less noise, less pain
 
FREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICS
FREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICSFREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICS
FREQUENCY DISTRIBUTION ( distribusi frekuensi) - STATISTICS
 
Tech day ngobrol santai tensorflow
Tech day ngobrol santai tensorflowTech day ngobrol santai tensorflow
Tech day ngobrol santai tensorflow
 
Ralf Herbrich - Introduction to Graphical models in Industry
Ralf Herbrich - Introduction to Graphical models in IndustryRalf Herbrich - Introduction to Graphical models in Industry
Ralf Herbrich - Introduction to Graphical models in Industry
 
02 order of growth
02 order of growth02 order of growth
02 order of growth
 
Unidad 2 ejercicios frecuencia1
Unidad 2 ejercicios frecuencia1Unidad 2 ejercicios frecuencia1
Unidad 2 ejercicios frecuencia1
 
BIIntro.ppt
BIIntro.pptBIIntro.ppt
BIIntro.ppt
 
Machine Learning Essentials Demystified part2 | Big Data Demystified
Machine Learning Essentials Demystified part2 | Big Data DemystifiedMachine Learning Essentials Demystified part2 | Big Data Demystified
Machine Learning Essentials Demystified part2 | Big Data Demystified
 
Standard deviation lesson
Standard deviation lessonStandard deviation lesson
Standard deviation lesson
 
Efficient Implementation of Self-Organizing Map for Sparse Input Data
Efficient Implementation of Self-Organizing Map for Sparse Input DataEfficient Implementation of Self-Organizing Map for Sparse Input Data
Efficient Implementation of Self-Organizing Map for Sparse Input Data
 
frequency distribution
 frequency distribution frequency distribution
frequency distribution
 
Keynote: Machine Learning for Design Automation at DAC 2018
Keynote:  Machine Learning for Design Automation at DAC 2018Keynote:  Machine Learning for Design Automation at DAC 2018
Keynote: Machine Learning for Design Automation at DAC 2018
 
An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)An introduction to Deep Learning with Apache MXNet (November 2017)
An introduction to Deep Learning with Apache MXNet (November 2017)
 
jpg image processing nagham salim_as.ppt
jpg image processing nagham salim_as.pptjpg image processing nagham salim_as.ppt
jpg image processing nagham salim_as.ppt
 
Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017
Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017
Getting Started with Keras and TensorFlow - StampedeCon AI Summit 2017
 
presentazione
presentazionepresentazione
presentazione
 
Deep Learning
Deep LearningDeep Learning
Deep Learning
 
Creating a Custom Serialization Format (Gophercon 2017)
Creating a Custom Serialization Format (Gophercon 2017)Creating a Custom Serialization Format (Gophercon 2017)
Creating a Custom Serialization Format (Gophercon 2017)
 

Recently uploaded

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 

Recently uploaded (20)

why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 

Data Analysis of Roulette Wheel

  • 1. Exploring Game of Roulette By: Aditya Chimbalkar Under the guidance of Prof. Lucas Vespa Graduate Research Seminar CSC 540 December 1st 2016
  • 2. About Roulette • What is Roulette? • General Overview • Objective
  • 3. Algorithm and Code Implementation Group A • Identifying Data types • Use of Functions and Procedures Group B • Breakdown of various challenges • Actual coding Group C • Comparing Results
  • 4. Implementation • Calculating average frequency of occurrence of a number. – Occurred Twice and Thrice • Frequency of occurring twice in a row • Longest run of Evens and Odds in row.
  • 5. Challenges faced • Pascal Language • Size of the Array • No Object Oriented support • Similar to C language • Good for small programs
  • 6. Average frequency of occurrences of a number 0 200 400 600 800 1000 1200 1400 1600 n=100 n=1000 n=10,000 n=100,000 n=1,000,000 n=10,000,000 20 40.63 35.79 38.34 37.18 37.0152 676 805.27 1262.3 1426.53 1362.09 Average Frequnecy of occurrences of a number - Twice in a row Average Frequnecy of occurrences of a number - Thrice in a row
  • 7. Frequency of number generated twice in a row. 0 1000000 2000000 3000000 4000000 5000000 6000000 7000000 8000000 9000000 10000000 n=100 n=1000 n=10,000 n=100,000 n=1,000,000 n=10,000,000 n=100,000,000 2 119 8762 98310 998873 9989916 9992605 Frequnecy of number generated - Twice in a row Frequnecy of number generated - Twice in a row
  • 8. Longest number of Evens and Odds in a row 0 0.5 1 1.5 2 2.5 3 3.5 4 n=100 n=1000 n=10,000 n=1,00,000 n=10,00,000 n=10,000,000 n=100,000,000 2 3 2 3 1 1 1 3 1 2 2 2 2 4 Longest number of evens in a row Longest number of odds in a row
  • 9. Table of Comparison. Number of Spins (n) Average frequency of occurrences of a number twice in a row Average frequency of occurrences of a number thrice in a row Frequency of number generated twice in a row Longest number of Evens in a row Longest number of Odds in a row Execution Time (seconds) 100 20 52 2 2 3 0.1 1000 40.63 676.00 119 3 1 0.1 10000 35.79 805.27 8762 2 2 0.1 100000 38.34 1262.30 98310 3 2 0.1 1000000 37.18 1426.53 998873 1 2 0.3 10000000 37.03 1345.44 9989916 1 2 0.7 100000000 37.01 1362.09 99926605 1 4 5
  • 10. Conclusion • Data Types in Pascal • Size of an Array • Input Value increase execution time • Repetitive occurrences can be predicted
  • 11. Future Work • Implementation of different data-structures • Solving problem of size of an Array • Implement in Turbo Pascal Thank you!