SlideShare a Scribd company logo
Integer Sequence Learning
Topic : -
Content
1.Problem Statement
2.Why Sequence Learning?
3.Road map of Phase 1
4.Sequence Learning Algorithms
4.1- Recurrence Relations
4.2- Ngram
Problem Statement
To Design a machine learning algorithm capable of guessing
the next number in an integer sequence
1, 2, 3, 4, 5, 7 ?
Guess what's next _???
Example
If your answer is 8 (Hint: Power of primes) then you predicted the number correctly.
You used your intuition and tried to find pattern in the integer sequence and then you
developed algorithm which predicted the right number.
That's exactly what we are trying to do the only difference is that the computer will have
to predict the correct number
Problem Statement (Simplified form)
Why Sequence Learning ?
• Provide answers to various mathematical and physics problems such as
number theory
• Avoids cases of intense operations such as checking for primeness (used in
cryptography)
• Can be used for predicting next system call(Malware Detection)
Sequence Learning Algorithms
These are the algorithms that try to find pattern in the given
sequence
It includes:-
Linear Recurrence Relation
N-gram
RNN(Recurrent Neural Network)
Markov chain
Linear Recurrence Relation
A linear recurrence relation is an equation that defines the n’th term in a
sequence in terms of the K previous terms in the sequence.
The recurrence relation is in the form:
N gram
 An n-gram is a contiguous sequence of n items from a given sequence
 of text or speech.
The items can be phonemes, syllables, letters, words or base pairs according
to the application.
The n-grams typically are collected from a text or speech corpus.
When the items are words, n-grams may also be called shingles.

More Related Content

PPTX
Introduction to Data Structure & algorithm
PPTX
11 Unit 1 Problem Solving Techniques
PPTX
Machine Learning Lecture Series Lecture 1
PDF
Intro to machine learning
PDF
Lecture 2 Basic Concepts in Machine Learning for Language Technology
PDF
Lecture 3: Basic Concepts of Machine Learning - Induction & Evaluation
PDF
Algorithms
PPTX
CubeIT Tech - Algorithms
Introduction to Data Structure & algorithm
11 Unit 1 Problem Solving Techniques
Machine Learning Lecture Series Lecture 1
Intro to machine learning
Lecture 2 Basic Concepts in Machine Learning for Language Technology
Lecture 3: Basic Concepts of Machine Learning - Induction & Evaluation
Algorithms
CubeIT Tech - Algorithms

What's hot (20)

PPTX
Chapter 09 design and analysis of algorithms
PPTX
Machine Learning Unit 1 Semester 3 MSc IT Part 2 Mumbai University
PPTX
Introduction to cp
PPTX
Introduction to Machine Learning
PPTX
Quora questions pair duplication analysis using semantic analysis
PDF
Problem solving techniques in c language
PPTX
Lecture 01: Machine Learning for Language Technology - Introduction
PDF
Sample prac exam2013
PPT
Mobile Computing
PPT
Machine Learning: Foundations Course Number 0368403401
PPTX
Presentation on supervised learning
DOC
80.doc
PPT
Matlab 4
PDF
Ideas about a Bachelor in Machine Learning/Data Sciences
PDF
Lecture 2: Preliminaries (Understanding and Preprocessing data)
PPT
MachineLearning.ppt
DOCX
Numerical methods and programming Tutorial
DOCX
Bt0082, visual basic
PPTX
Exam 1 Review CS 1803
PPTX
An overview of machine learning (1)
Chapter 09 design and analysis of algorithms
Machine Learning Unit 1 Semester 3 MSc IT Part 2 Mumbai University
Introduction to cp
Introduction to Machine Learning
Quora questions pair duplication analysis using semantic analysis
Problem solving techniques in c language
Lecture 01: Machine Learning for Language Technology - Introduction
Sample prac exam2013
Mobile Computing
Machine Learning: Foundations Course Number 0368403401
Presentation on supervised learning
80.doc
Matlab 4
Ideas about a Bachelor in Machine Learning/Data Sciences
Lecture 2: Preliminaries (Understanding and Preprocessing data)
MachineLearning.ppt
Numerical methods and programming Tutorial
Bt0082, visual basic
Exam 1 Review CS 1803
An overview of machine learning (1)
Ad

Similar to Integer sequence learning using Python (20)

PDF
Design & Analysis Of Algorithm
PDF
Getting started with Machine Learning
PPT
Types of Algorithms.ppt
PDF
SPSF01 - Algorithm
PPTX
Neural Networks
PPTX
"A short and knowledgeable concept about Algorithm "
PDF
Algorithm chapter 1
PDF
01 Notes Introduction Analysis of Algorithms Notes
PPTX
Machine learning and decision trees
PDF
Introduction to data structure and algorithm
PPTX
Recurrence Relation
PPTX
AD3501 - DL Unit-1 PPT.pptx python syllabus
PPTX
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
PDF
Analysis of Algorithms
PDF
Design & Analysis of Algorithms Lecture Notes
PPTX
Module 1_ Introduction.pptx
PPTX
Algorithm analysis (All in one)
PPTX
Algorithm, Concepts in performance analysis
PPTX
application of algorithm Presentation1.pptx
Design & Analysis Of Algorithm
Getting started with Machine Learning
Types of Algorithms.ppt
SPSF01 - Algorithm
Neural Networks
"A short and knowledgeable concept about Algorithm "
Algorithm chapter 1
01 Notes Introduction Analysis of Algorithms Notes
Machine learning and decision trees
Introduction to data structure and algorithm
Recurrence Relation
AD3501 - DL Unit-1 PPT.pptx python syllabus
PPT - AutoML-Zero: Evolving Machine Learning Algorithms From Scratch
Analysis of Algorithms
Design & Analysis of Algorithms Lecture Notes
Module 1_ Introduction.pptx
Algorithm analysis (All in one)
Algorithm, Concepts in performance analysis
application of algorithm Presentation1.pptx
Ad

Recently uploaded (20)

PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Geodesy 1.pptx...............................................
PPTX
Sustainable Sites - Green Building Construction
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Construction Project Organization Group 2.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
Operating System & Kernel Study Guide-1 - converted.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Internet of Things (IOT) - A guide to understanding
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Automation-in-Manufacturing-Chapter-Introduction.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Geodesy 1.pptx...............................................
Sustainable Sites - Green Building Construction
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Construction Project Organization Group 2.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Model Code of Practice - Construction Work - 21102022 .pdf

Integer sequence learning using Python

  • 2. Content 1.Problem Statement 2.Why Sequence Learning? 3.Road map of Phase 1 4.Sequence Learning Algorithms 4.1- Recurrence Relations 4.2- Ngram
  • 3. Problem Statement To Design a machine learning algorithm capable of guessing the next number in an integer sequence 1, 2, 3, 4, 5, 7 ? Guess what's next _??? Example
  • 4. If your answer is 8 (Hint: Power of primes) then you predicted the number correctly. You used your intuition and tried to find pattern in the integer sequence and then you developed algorithm which predicted the right number. That's exactly what we are trying to do the only difference is that the computer will have to predict the correct number Problem Statement (Simplified form)
  • 5. Why Sequence Learning ? • Provide answers to various mathematical and physics problems such as number theory • Avoids cases of intense operations such as checking for primeness (used in cryptography) • Can be used for predicting next system call(Malware Detection)
  • 6. Sequence Learning Algorithms These are the algorithms that try to find pattern in the given sequence It includes:- Linear Recurrence Relation N-gram RNN(Recurrent Neural Network) Markov chain
  • 7. Linear Recurrence Relation A linear recurrence relation is an equation that defines the n’th term in a sequence in terms of the K previous terms in the sequence. The recurrence relation is in the form:
  • 8. N gram  An n-gram is a contiguous sequence of n items from a given sequence  of text or speech. The items can be phonemes, syllables, letters, words or base pairs according to the application. The n-grams typically are collected from a text or speech corpus. When the items are words, n-grams may also be called shingles.