SlideShare a Scribd company logo
Automatic Problem
Generation
A new approach to Mathematical analysis
Presented by: Abhishek Dey. Developer. Architect.
What is a problem?
▪ Take a typical example (Algebra):
𝑎𝑥2 + 𝑏𝑥 + 𝑐 = 0 is a quadratic equation. Resolve the factors.
Approach:
1. We multiply a*c and resolve the common factors.
2. We manipulate them and try to rearrange equation to satisfy constraint b.
3. 𝑎𝑥2 + 𝑏′ 𝑥 + 𝑏 − 𝑏′ 𝑥 + 𝑐 = 0 where b’ is a constant.
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 2
Human Analysis Vs. Machine Analysis
Factorize a*c.
I. assume expr=a*c
II. take a suitable integer x and divide expr/x
III. if remainder is divisible by x, continue
(expr-x)/x else, check for a new divisor y
(expr-x)/y.
IV. repeat unless expr reduces to a prime
number or 1.
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 3
Computer’s Algorithm:
▪ Has to start from 2 and continue checking up to a*c-1 times.
▪ Iterator 𝑖 ≔ 2 to 𝑖 ≔ 𝑒𝑥𝑝𝑟 − 1
– If 𝑒𝑥𝑝𝑟%𝑖 ≔ 0, then
▪ 𝑒𝑥𝑝𝑟 ≔ 𝑒𝑥𝑝𝑟/𝑖
– Else
▪ 𝑖 + +
▪ Do you think this is smart ? 
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 4
A better approach
▪ Fundamental Law of Arithmetic:
– Every composite number can be expressed as a product of primes.
▪ This makes the algorithm faster and smarter.
Number Number of Divisors
Prime 2
Square of a prime 3
Cube of a prime 4
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 5
Problem with Machines
▪ They generate random figures.
– Can you solve 48885𝑥2
+ 3287𝑥 + 95670 = 0 ?
– Probably. But not in a limited time.
▪ The generated problem may not have a unique solution.
▪ Some problems such as Matrix Chain multiplication, Bellman Ford,
Dijkstra may require a lot of processing power.
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 6
Where there is will, there is a unique
solution
▪ Processing Queue:
– We use a distributed processing model.
– Some problems from our end, others from customer’s end.
– We maintain a processing queue.
– A worker role that keeps record of all the distributed tasks
going on.
Example:
Say, we have a customer X who wants 10 questions on
quadratic equations.The server supplies 5 of them and
the remaining is generated in his system and backed up
in our server.
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 7
Architecture of the back end
Backend
Database
ProcessingQueueWrites data
Contacts tracker
We areTrackers!
We keep track of
jobs
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 8
Determining a unique solution
▪ We form aTree.
▪ Trace all paths that can be followed.
▪ If we reach a wrong node, we trace
back using Backtracking.
▪ Finally the correct path is determined.
▪ If the tree is too complex we use
Union-Find algorithm.
▪ This also helps us to know the
difficulty level of a problem.
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 9
Another problem has come up!
▪ When a user chooses a level of difficulty for
the generated problems, what do we mean
by EASY or HARD?
▪ EASY is a relative term.
▪ So, we employ 2 things:
– A Machine Learning mechanism based on
sentiment analysis.
– Feedback from live customers.
– What is MACHINE LEARNING?? :O
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 10
Achieved Throughput
0
5000000
10000000
15000000
20000000
25000000
30000000
35000000
40000000
500 1000 10,000 1,00,000 10,00,000 20,00,000
NO.OFQUESTIONS
NO. OF DEVICES
NO. OF DEVICES
No. of devices
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 11
What’s the point?
We hate these
situations!
We want a
solution.
Maybe unique.

9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 12
The UI and UX:
▪ Users will be offered:
– Choose number of questions.
– Choose difficulty level of questions.
– If not satisfied with response, option to discard
question by just a slide.
– The experience is sleek and hassle free.
▪ What we shall get:
– We are Opensource. Not just FREE.
– Entire profits from advertisements.
– You contribute your processing power. (a little bit.)
– Build a platform for teachers.
9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 13
To all the teachers,
on Teacher’s Day
ThankYou.
uriosity
ommitment
ommunityC

More Related Content

PPTX
Greedy Algorithm by Jerin
PPTX
Photoshop skills
PPTX
Being facebook webinar
PPTX
Informe del Wiki
PPTX
以弗所歌羅西書V2
PDF
Meyve hastalik ve zararlilari ilaç
KEY
Rubber Republic - Space camping!
PDF
20110930094926548
Greedy Algorithm by Jerin
Photoshop skills
Being facebook webinar
Informe del Wiki
以弗所歌羅西書V2
Meyve hastalik ve zararlilari ilaç
Rubber Republic - Space camping!
20110930094926548

Viewers also liked (18)

PDF
Süs bitkileri hastalik ve zararlilari
PPTX
Comercial jeaneth
PPT
Conrad Quilty-Harper newsrw presentation
PPTX
Working title
PDF
Niyogi books catalogue march 2012[1]
PPTX
Narrative theories
PDF
Bag bilgi notu 01.06.16 mrl degerı
PDF
Revistas diciembre3
PPT
County comparison
PPTX
Gincama sostenible
PPTX
Selection of photoshoot images
PDF
1b -1c extra
PPT
Узбекистан
PDF
Smyth+v.+pillsbury
PDF
Generation Now and the Virtual Worlds of Girls 6 to 12
PPT
Konzulárne dni v Manchestri 11.-12. októbra_2013
PDF
We speack, we impact
Süs bitkileri hastalik ve zararlilari
Comercial jeaneth
Conrad Quilty-Harper newsrw presentation
Working title
Niyogi books catalogue march 2012[1]
Narrative theories
Bag bilgi notu 01.06.16 mrl degerı
Revistas diciembre3
County comparison
Gincama sostenible
Selection of photoshoot images
1b -1c extra
Узбекистан
Smyth+v.+pillsbury
Generation Now and the Virtual Worlds of Girls 6 to 12
Konzulárne dni v Manchestri 11.-12. októbra_2013
We speack, we impact
Ad

Similar to Automatic problem generation (20)

PPTX
fundamentals of python programmingg.pptx
PDF
Introduction to Computational Thinking 1st Edition Thomas Mailund
PPTX
Algo_Lecture01.pptx
PDF
Algorithms
PDF
Design and analysis of algorithms
PDF
Nguyễn Nho Vĩnh - Problem solvingwithalgorithmsanddatastructures
PPTX
Ch1Levitin.pptx una presentacion muy ilustrativa
PPTX
Algorithmic thinking with python Module 1.2
PDF
Computational thinking v0.1_13-oct-2020
PPTX
Keynote 1: Teaching and Learning Computational Thinking at Scale
PPTX
Lecture 1 Introduction to Computational Thinking.pptx
PPTX
ADA_Module 1_MN.pptx- Analysis and design of Algorithms
PDF
Basic Problems and Solving Algorithms
PPTX
Unit 1 Program pratices for system which helps to solve c matter
PPTX
DAA UNIT 3
PDF
Data Structures and Algorithms Made Easy in Java ( PDFDrive ).pdf
PPTX
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
PPT
Lecture01 algorithm analysis
PPTX
ICT II 4th Quarter Computational Thinking.pptx
PDF
guide-t-cp.pdf programming book will help to
fundamentals of python programmingg.pptx
Introduction to Computational Thinking 1st Edition Thomas Mailund
Algo_Lecture01.pptx
Algorithms
Design and analysis of algorithms
Nguyễn Nho Vĩnh - Problem solvingwithalgorithmsanddatastructures
Ch1Levitin.pptx una presentacion muy ilustrativa
Algorithmic thinking with python Module 1.2
Computational thinking v0.1_13-oct-2020
Keynote 1: Teaching and Learning Computational Thinking at Scale
Lecture 1 Introduction to Computational Thinking.pptx
ADA_Module 1_MN.pptx- Analysis and design of Algorithms
Basic Problems and Solving Algorithms
Unit 1 Program pratices for system which helps to solve c matter
DAA UNIT 3
Data Structures and Algorithms Made Easy in Java ( PDFDrive ).pdf
Unit 2 CPR.pptxaccSSzzCSDVVSVZVZSVVSDVDDSDDS
Lecture01 algorithm analysis
ICT II 4th Quarter Computational Thinking.pptx
guide-t-cp.pdf programming book will help to
Ad

More from Abhishek Dey (6)

PPTX
Cafaholic ppt
PPTX
Handling High Energy Physics Data using Cloud Computing
PPTX
Big Data Analysis on a Cloud Ecosystem-PATW 2013
PPTX
Hadoop and MapReduce
PPTX
Cloud computing using Eucalyptus
PPTX
Introduction to cloud computing
Cafaholic ppt
Handling High Energy Physics Data using Cloud Computing
Big Data Analysis on a Cloud Ecosystem-PATW 2013
Hadoop and MapReduce
Cloud computing using Eucalyptus
Introduction to cloud computing

Recently uploaded (20)

PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
System and Network Administraation Chapter 3
PDF
AI in Product Development-omnex systems
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Digital Strategies for Manufacturing Companies
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Transform Your Business with a Software ERP System
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
medical staffing services at VALiNTRY
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
L1 - Introduction to python Backend.pptx
Softaken Excel to vCard Converter Software.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ai tools demonstartion for schools and inter college
System and Network Administraation Chapter 3
AI in Product Development-omnex systems
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Understanding Forklifts - TECH EHS Solution
Navsoft: AI-Powered Business Solutions & Custom Software Development
Digital Strategies for Manufacturing Companies
CHAPTER 2 - PM Management and IT Context
Transform Your Business with a Software ERP System
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
medical staffing services at VALiNTRY
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Wondershare Filmora 15 Crack With Activation Key [2025
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
L1 - Introduction to python Backend.pptx

Automatic problem generation

  • 1. Automatic Problem Generation A new approach to Mathematical analysis Presented by: Abhishek Dey. Developer. Architect.
  • 2. What is a problem? ▪ Take a typical example (Algebra): 𝑎𝑥2 + 𝑏𝑥 + 𝑐 = 0 is a quadratic equation. Resolve the factors. Approach: 1. We multiply a*c and resolve the common factors. 2. We manipulate them and try to rearrange equation to satisfy constraint b. 3. 𝑎𝑥2 + 𝑏′ 𝑥 + 𝑏 − 𝑏′ 𝑥 + 𝑐 = 0 where b’ is a constant. 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 2
  • 3. Human Analysis Vs. Machine Analysis Factorize a*c. I. assume expr=a*c II. take a suitable integer x and divide expr/x III. if remainder is divisible by x, continue (expr-x)/x else, check for a new divisor y (expr-x)/y. IV. repeat unless expr reduces to a prime number or 1. 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 3
  • 4. Computer’s Algorithm: ▪ Has to start from 2 and continue checking up to a*c-1 times. ▪ Iterator 𝑖 ≔ 2 to 𝑖 ≔ 𝑒𝑥𝑝𝑟 − 1 – If 𝑒𝑥𝑝𝑟%𝑖 ≔ 0, then ▪ 𝑒𝑥𝑝𝑟 ≔ 𝑒𝑥𝑝𝑟/𝑖 – Else ▪ 𝑖 + + ▪ Do you think this is smart ?  9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 4
  • 5. A better approach ▪ Fundamental Law of Arithmetic: – Every composite number can be expressed as a product of primes. ▪ This makes the algorithm faster and smarter. Number Number of Divisors Prime 2 Square of a prime 3 Cube of a prime 4 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 5
  • 6. Problem with Machines ▪ They generate random figures. – Can you solve 48885𝑥2 + 3287𝑥 + 95670 = 0 ? – Probably. But not in a limited time. ▪ The generated problem may not have a unique solution. ▪ Some problems such as Matrix Chain multiplication, Bellman Ford, Dijkstra may require a lot of processing power. 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 6
  • 7. Where there is will, there is a unique solution ▪ Processing Queue: – We use a distributed processing model. – Some problems from our end, others from customer’s end. – We maintain a processing queue. – A worker role that keeps record of all the distributed tasks going on. Example: Say, we have a customer X who wants 10 questions on quadratic equations.The server supplies 5 of them and the remaining is generated in his system and backed up in our server. 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 7
  • 8. Architecture of the back end Backend Database ProcessingQueueWrites data Contacts tracker We areTrackers! We keep track of jobs 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 8
  • 9. Determining a unique solution ▪ We form aTree. ▪ Trace all paths that can be followed. ▪ If we reach a wrong node, we trace back using Backtracking. ▪ Finally the correct path is determined. ▪ If the tree is too complex we use Union-Find algorithm. ▪ This also helps us to know the difficulty level of a problem. 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 9
  • 10. Another problem has come up! ▪ When a user chooses a level of difficulty for the generated problems, what do we mean by EASY or HARD? ▪ EASY is a relative term. ▪ So, we employ 2 things: – A Machine Learning mechanism based on sentiment analysis. – Feedback from live customers. – What is MACHINE LEARNING?? :O 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 10
  • 11. Achieved Throughput 0 5000000 10000000 15000000 20000000 25000000 30000000 35000000 40000000 500 1000 10,000 1,00,000 10,00,000 20,00,000 NO.OFQUESTIONS NO. OF DEVICES NO. OF DEVICES No. of devices 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 11
  • 12. What’s the point? We hate these situations! We want a solution. Maybe unique.  9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 12
  • 13. The UI and UX: ▪ Users will be offered: – Choose number of questions. – Choose difficulty level of questions. – If not satisfied with response, option to discard question by just a slide. – The experience is sleek and hassle free. ▪ What we shall get: – We are Opensource. Not just FREE. – Entire profits from advertisements. – You contribute your processing power. (a little bit.) – Build a platform for teachers. 9/5/2015Prepared by: Abhishek Dey, Developer, Cloud Architect. 13
  • 14. To all the teachers, on Teacher’s Day ThankYou. uriosity ommitment ommunityC