SlideShare a Scribd company logo
2
Most read
3
Most read
Introduction to
Competitive
programming
Most known competitions
ACM ICPC
Google code jam
Facebook hacker cup
Training platforms
www.codeforces.com
Open.kattis.com
www.codechef.com
Problem types
Why do we need to know what type of problem we are dealing with?
Problem type identification means you can :
✘ Pinpoint the problems Difficulty
✘Determine necessary time to solve the problem
✘Narrow the search for the right algorithm to use
So what are the main problem types ?
Group A : Group B :
ad Hoc graph
complete search mathematics
divide and conquer string processing
greedy
computational
geometry
Dynamic programming
some harder/rare
problems
problem types :
Problem types in a nutshell :
Ad Hoc
✘ Can’t be classified
anywhere else.
✘ Usually the easisest one,
✘ Some examples:
- games(cards, chess …)
- anagrams
- palindromes
Complete search
✘ Brute force searching
through the entire search
space
✘ Beating the time limit
✘ Optimizing the search:
(recursive backtracking)
Divide and conquer
✘ Gaining in simplicity by
dividing the problem to
smaller parts
✘ Binary search example
Problem types in a nutshell :
Greedy
✘ Case by case optimisation
✘ Optimal sub-structure
✘ Coin change example
Dynamic programming
✘ Determine problem state
✘ Faster and more elaborate
recursive backtracking
✘ A very small
illustration(wedding
shopping example)
To be continued …

More Related Content

PDF
Kids computer-programming
PPTX
Competitive Programming
PPTX
Competitive programming
PDF
Workshop on programming contest
PPT
An introduction to Competitive Programming
PPTX
Competitive Programming Guide
PPTX
Competitive programming
PPTX
Road map to competitive programming
Kids computer-programming
Competitive Programming
Competitive programming
Workshop on programming contest
An introduction to Competitive Programming
Competitive Programming Guide
Competitive programming
Road map to competitive programming

What's hot (20)

PPTX
Computer Programming Overview
PPTX
Prgramming paradigms
PPTX
Dynamic programming class 16
PPTX
Basic Computer Programming
PPTX
P vs NP
PPTX
An introduction to coding
PPTX
State space search and Problem Solving techniques
PDF
Hour of code handout for schools
PPTX
Algorithms and problem solving.pptx
PPT
Intro To Programming Concepts
PPTX
Algorithm itabq
PDF
1 introduction to problem solving and programming
PPTX
Introduction to Coding
PPTX
Introduction to Algorithm
PPTX
NLP Applications
PPTX
Software testing
PPTX
Programming Fundamentals lecture 2
PDF
한국어 띄어쓰기 프로그램 도전기
PDF
AI in SE: A 25-year Journey
PPTX
Job Opportunities for a Computer Science Student
Computer Programming Overview
Prgramming paradigms
Dynamic programming class 16
Basic Computer Programming
P vs NP
An introduction to coding
State space search and Problem Solving techniques
Hour of code handout for schools
Algorithms and problem solving.pptx
Intro To Programming Concepts
Algorithm itabq
1 introduction to problem solving and programming
Introduction to Coding
Introduction to Algorithm
NLP Applications
Software testing
Programming Fundamentals lecture 2
한국어 띄어쓰기 프로그램 도전기
AI in SE: A 25-year Journey
Job Opportunities for a Computer Science Student
Ad

Similar to Introduction to Competitive programming (20)

PPTX
Kickstart to Competitive programming .P.pptx
PDF
guide-t-cp.pdf programming book will help to
PPTX
Think like a programmer
PDF
CP tips and tricks.pdf
PDF
Elements of Programming Interviews.pdf
PPTX
Unit I -1.2. Identification of Computational Problems.pptx
PPTX
Unit I -1.2. Identification of Computational Problems (2).pptx
PDF
Unit-I-DAA.pdf
PPTX
FDS Unit I_PPT.pptx
PPTX
DAA_Hard_Problems_(4th_Sem).pptxxxxxxxxx
PPTX
L1_Start_of_Learning_of_Algorithms_Basics.pptx
PDF
Algorithms
PDF
Teaching Constraint Programming, Patrick Prosser
PPTX
L1_DatabAlgorithm Basics with Design & Analysis.pptx
PDF
Algo Strategies and explaination ppt.pdf
PPT
Acm icpc-briefing-prof-nbv
PPTX
Applied Algorithms Introduction to Algorithms.pptx
PDF
Basic Problems and Solving Algorithms
PPTX
3. CPT121 - Introduction to Problem Solving - Module 1 - Unit 3.pptx
PPT
Data Structure and Algorithms Department of Computer Science
Kickstart to Competitive programming .P.pptx
guide-t-cp.pdf programming book will help to
Think like a programmer
CP tips and tricks.pdf
Elements of Programming Interviews.pdf
Unit I -1.2. Identification of Computational Problems.pptx
Unit I -1.2. Identification of Computational Problems (2).pptx
Unit-I-DAA.pdf
FDS Unit I_PPT.pptx
DAA_Hard_Problems_(4th_Sem).pptxxxxxxxxx
L1_Start_of_Learning_of_Algorithms_Basics.pptx
Algorithms
Teaching Constraint Programming, Patrick Prosser
L1_DatabAlgorithm Basics with Design & Analysis.pptx
Algo Strategies and explaination ppt.pdf
Acm icpc-briefing-prof-nbv
Applied Algorithms Introduction to Algorithms.pptx
Basic Problems and Solving Algorithms
3. CPT121 - Introduction to Problem Solving - Module 1 - Unit 3.pptx
Data Structure and Algorithms Department of Computer Science
Ad

Recently uploaded (20)

PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Nekopoi APK 2025 free lastest update
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
medical staffing services at VALiNTRY
PPTX
history of c programming in notes for students .pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Online Work Permit System for Fast Permit Processing
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
How Creative Agencies Leverage Project Management Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PTS Company Brochure 2025 (1).pdf.......
Softaken Excel to vCard Converter Software.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Operating system designcfffgfgggggggvggggggggg
Nekopoi APK 2025 free lastest update
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
CHAPTER 2 - PM Management and IT Context
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
medical staffing services at VALiNTRY
history of c programming in notes for students .pptx
Odoo POS Development Services by CandidRoot Solutions
Online Work Permit System for Fast Permit Processing
How to Choose the Right IT Partner for Your Business in Malaysia

Introduction to Competitive programming

  • 2. Most known competitions ACM ICPC Google code jam Facebook hacker cup
  • 4. Problem types Why do we need to know what type of problem we are dealing with?
  • 5. Problem type identification means you can : ✘ Pinpoint the problems Difficulty ✘Determine necessary time to solve the problem ✘Narrow the search for the right algorithm to use
  • 6. So what are the main problem types ?
  • 7. Group A : Group B : ad Hoc graph complete search mathematics divide and conquer string processing greedy computational geometry Dynamic programming some harder/rare problems problem types :
  • 8. Problem types in a nutshell : Ad Hoc ✘ Can’t be classified anywhere else. ✘ Usually the easisest one, ✘ Some examples: - games(cards, chess …) - anagrams - palindromes Complete search ✘ Brute force searching through the entire search space ✘ Beating the time limit ✘ Optimizing the search: (recursive backtracking) Divide and conquer ✘ Gaining in simplicity by dividing the problem to smaller parts ✘ Binary search example
  • 9. Problem types in a nutshell : Greedy ✘ Case by case optimisation ✘ Optimal sub-structure ✘ Coin change example Dynamic programming ✘ Determine problem state ✘ Faster and more elaborate recursive backtracking ✘ A very small illustration(wedding shopping example)