Tutorials |
Tutorials on specific topics or problems should be linked to from this page. Anyone visiting this page should have access to all the tutorials on the wiki.
Tutorials for Problems
1. Tutorial for Paying Up
2. Tutorial for Small Factorials
3. Tutorial for Product of Divisors
4. Tutorial for Input,Output
5. Tutorial for Johnny and the Bean Stalk
6. Tutorial for Not a Triangle
7. Tutorial for Quadratic Equations
8. Recursion - Sums in a Triangle
9. Tutorial for Kayaks
10. Tutorial for Just a simple sum
11. Tutorial for A Coin Game
12. Tutorial for The White Knight
13. Tutorial for The LCS Problem Revisited
Tutorials for Algorithm topics
1. Tutorial for Dynamic Programming
2. Tutorial for bitwise operations
3. Tutorial for binary search
4. Tutorial on Graph Theory - part 1
5. Tutorial on Graph Theory - part 2
6. Tutorial for Maximum Flow
7. Tutorial for Minimum cost Maximum Flow
8. Tutorial for String related algorithms
9. Tutorial on Game Theory
10. Tutorial for ambiguous permutations
Brushing up Basic Data Structures: Advanced data structures: 1. Tutorial on Segment Trees 2. Tutorial on Interval Trees 3. Tutorial on Binary Indexed TreesTutorials for Data Structure topics
Queues Tutorial and C Program
Single Linked List Tutorial and C Program
Double Linked List Tutorial and C Program
Circular Linked List Tutorial and C Program
Know Your Language
1.Java
Mathematics Tutorials
1. Basic Number Theory Every Programmer Should Know...
2. Mathematical Expectation
Video Tutorials
1. Tutorial for A Puzzle Game
Books
1. Standard book on Algorithms - Introduction to Algorithms by T H Cormen, C E Leiserson, R L Rivest, C stein ( Famously known as CLRS )
2. Basic Algorithms - Algorithms by Richard Johnsonbaugh, Marcus Schaefer
3. Game Theory - Winning ways for your mathematical plays by Elwyn R. Berlekamp, John H. Conway, Richard K. Guy
4. Programming challenges - Steven Skienna
5. Concrete Mathematics - Knuth
6. How to solve it by a computer - Dromey
7. Structure and interpretation of computer programs - Elsevier
8. Programming Language Pragmatics - Micheal Scott : It gives comparative study of various programming languages and helps you decide choose the appropriate ones on the basis of time they take to process information
Visualizations to assist beginners - a visual approach to Data Structures
(Most of us who created these are codechef members - an educational initiative to give back to the programming community)
1)Sorting and searching arrays :
http://www.thelearningpoint.net/computer-science/sorting-algorithms2)
Linear data structures : Lists, Stacks, Queues :
http://www.thelearningpoint.net/computer-science/lists3)
Trees : Binary search trees, Heaps, Height balanced trees:
http://www.thelearningpoint.net/computer-science/trees4)
Recursion:
http://www.thelearningpoint.net/computer-science/recursion5)
Dynamic Programming:
http://www.thelearningpoint.net/computer-science/dynamic-programming6)
Greedy Algorithms:
http://www.thelearningpoint.net/computer-science/greedy-algorithms7)
Graph Algorithms:
http://www.thelearningpoint.net/computer-science/graph-algorithmsComments


How do I post a new Tutorial?
How do I post a new Tutorial?
See the Wiki Howto page
See the Wiki Howto page linked to from the main Wiki page.
Why are the changes not
Why are the changes not reflected when I am 'saving' or 'previewing' :( ??
Cann't we remove / reorder things ??
@Anil Yes you can. What page
@Anil Yes you can. What page are you facing problems with?
Ya, its working .. but not so
Ya, its working .. but not so user-friendly.. I need to open tutorials -> go to that page -> Edit -> save, all the time. An edit -> save, followed by an Edit again.. doesn't seem to be working. Also, some small minor issues with Edit-> Preview.. not showing what I have edited sometimes and I lost that part a couple of times :( . . . 'm saving to a file now.. wht ever 'm editing, before saving :p.
Any way, will do it any way, in what ever way ;)
@Aniruddha I have experienced
@Aniruddha I have experienced this problem in the past. After you click preview, anything you do doesn't get saved. You can fix it by applying the patch here: http://drupal.org/node/262478
I was editing a tutorial, and
I was editing a tutorial, and suddenly the page refreshed on its own and all the unsaved changes disappeared :( ... Will have to do it all over again
There is some issue with the
There is some issue with the preview option. Thank you for the patch Stephen. Will check it out.
Also, you people are doing a
Also, you people are doing a very nice job with the tutorials :) Keep up the good work.
@Anil Edit->save->edit seems
@Anil Edit->save->edit seems to be working. We are checking out the preview part.
Till further notice, please don't use the preview option, you might end up losing everything that you had typed.
Can some one see the big
Can some one see the big <span.. blabla > thing that is getting displayed in the code window in the Dynamic Programming tutorial.... baah ! got some other work now, want to write more in taht Tut.. :(.. Bye !
I can't see anything of that
I can't see anything of that sort :( Screenshot maybe ? Send it to aniruddha@codechef.com
This concept of creating the
This concept of creating the tutorial heading with no content yet. Should be modified with request rate(i.e. request for content by users) by other user will really make codechef wiki great precious jewel to the learner like me.
Other user could also create heading for topic they want to learn.
@aniruddha: Its corrected by
@aniruddha: Its corrected by ishani . Some problem with the auto-generated html in the [code] tags.. it was giving unwanted loong <span blabla >.. thanks anyway :)
pls send the source code or
pls send the source code or tutorial to access the NetCdF files using C program
I really feel like someone
I really feel like someone should write a tutorial on C++ STL and small things beginners usually miss while writing code in C++ . Basically string handling in C++ , small tricks , data structures available in the STL that are used etc.
Currently writing it :)
Currently writing it :)
Keep updating the wiki.. with
Keep updating the wiki.. with your content, so that we can see what topics you are writing, so that we can add to it and can also start other sub-topics.
Add the video by varun jalan
Add the video by varun jalan on binary index tree at mumbai codechef meetup in wiki. It was marvelous lecture.
Pls update the wiki with more
Pls update the wiki with more content. It has been in this state for sometime now. Admin , is there some problem with wiki now. I expect some tutorials for the dec contest
My C++ program compiles and
My C++ program compiles and run well and good in Dev C++ but shows error when I submit it to the codechef.
Which compiler I am supposed to select?
Will Turbo C or Turbo C++ will be a good replacement to work in C or C++ for Codechef?
Dev C++ is perfectly fine.
Dev C++ is perfectly fine. You are obviously not testing your code on the test cases that it fails on.
@Chan Chui: Could you please
@Chan Chui: Could you please tell a bit more about the error you're getting. It can happen sometimes that Dev C++ might not report certain errors. One such instance was when I used a global variable named "index" and included the cstring header file which gave a compilation error on codechef but not on my Dev C++.
why can't we read these
why can't we read these tutorials????????
they have no links.........
5. Tutorial on Graph Theory - part 2
6. Tutorial for Maximum Flow
7. Tutorial for Minimum cost Maximum Flow
8. Tutorial for String related algorithms
9. Tutorial on Game Theory
Tutorials for Data Structure topics
1. Tutorial on Segment Trees
2. Tutorial on Interval Trees
3. Tutorial on Binary Indexed Trees
They don't exist. I think
They don't exist. I think someone just put that text there in the hope someone would write such tutorials.
hey u guys are doing great
hey u guys are doing great job
The tutorials are really good.
my programs runs in dev c++
can anyone please give me an
can anyone please give me an pdf of johnsonbaugh's book.......................
can anyone please give me an
can anyone please give me an pdf of johnsonbaugh's book.......................
please help me about various
please help me about various data input,and print output
it is problem me to take input a large scale
i am confused about data type range
please help me, i am new
any1 plz explain how to find
any1 plz explain how to find all the substring of a string given a suffix array....
hii i am new. i am doing
hii i am new. i am doing programming in turbo c. which language do i use for submissions?
i am using turbo c++ on
i am using turbo c++ on Windows os
itell me about linux edubantu which compiler c++ abd ide to use and how
also download location
@ SUNIL ... You can use DEV
@ SUNIL ...
You can use DEV C++ in Windows and CODE Block in WINDOW/LINUX. They are really so cool editor i have used ever.
i am getting runtime error
i am getting runtime error which running the program. can anyone say why it is happening and how to rectify it. I am new to programming so please help me out.
Could someone provide a
Could someone provide a tutorial on segment trees?
I am also looking for a good
I am also looking for a good segment tree tutorial, if someone can write tutorial on the same
Until someone writes some
Until someone writes some tutorials for Codechef, you could refer tutorials elsewhere. This one is excellent for Indexed trees, and this one has a nice implementation and application of segment trees.
Hope that helps.
Need a clue on Primality
Need a clue on Primality test!!
hey... if mine input
hey... if mine input is:
5
1
3
123
4
5
then what should be the output and shoud it accept no. after 123.....
plz tel me.....
excellent tutorials codechef
excellent tutorials codechef
Thank you for all those
Thank you for all those informations, it help me a lot. I found a few thing here also :
Creation site internet entreprises
See ya
I like to program on turbo
I like to program on turbo c++ now i want to switch on gcc 4.3.2
so, i need some tutorials to understand gcc 4.3.2
please help me
there should be some tutorial
there should be some tutorial for C++ libraries also
since most of the programmer works in this particular language only.....
@admin plzzzz some tutorials
@admin
plzzzz some tutorials on segement tree also..
This is to help beginners in