Algorithmic Competition Introduction Classic (second edition) PDF

Source: Internet
Author: User



: network disk Download

Content Introduction· · · · · ·

"Algorithm Competition Introduction Classic (2nd edition)" is an introduction to the algorithm competition and improve the teaching materials, C/s language, algorithm and reconciliation problems organically combined, dilute the theory, focus on learning methods and practical skills. The contents of the book are divided into 12 chapters, including the introduction of programming, cyclic structure programming, arrays and strings, functions and recursion, C + + and STL entry, data Structure Foundation, Brute force solution, efficient algorithm design, dynamic programming, mathematical concepts and methods, graph theory models and algorithms, advanced topics and other content, Covers the introduction of algorithmic contests and improves the main points of knowledge required, and contains a large number of examples and exercises. The code in the book is standardized, concise and understandable, not only to help the reader understand the principles of the algorithm, but also to teach the reader a lot of practical programming skills, the book contains a variety of development, testing and debugging skills are also traditional language, algorithm books are difficult to see.

"Algorithm Competition Introduction Classic (2nd edition)" Can be used as the National Youth Informatics Olympic League (NOIP) semi-finals textbook, the National Youth Informatics Olympiad (NOI) and ACM International College Student Program Design Competition (ACM/ICPC) training materials, It can also be used as a reference book for IT engineers and researchers.

about the author· · · · · ·

Rujia, born in December 1982, graduated from high school in Chongqing foreign Language school. March 2000 won the NOI2000 National Youth Informatics Olympiad First prize fourth, entered the national training team, and therefore to Tsinghua University computer Science and Technology department. Won the 2001 ACM/ICPC International University Program Design Competition Asia-Shanghai Division winner and 2002 World Finals silver medal (world Fourth), 2005 received a bachelor's degree, 2008 received a master's degree.

Students in the age of the Chinese Computer Society NOI Science Committee student member, as ioi2002-2008 China national team coach, and for the NOI series of competition proposition more than 10. He is now a member of the NOI competition Committee and was awarded the "Special Contribution Award" by the Chinese Computer Society at the 25 anniversary of NOI.

From 2004 to present, ACM/ICPC Asia Division Proposition 20, served as 6 referee and 2 proposition director, and was invited to participate in IOI and ACM/ICPC related international seminars, published two articles.

In early 2004, as the first author published monographs "Algorithm Art and Informatics Contest", published in 2009 translated "Programming Challenges", 2009 published "Algorithmic Competition Primer", 2012 published "Algorithmic Competition Primer-Training Guide."

Over the years in more than 20 cities in the country to carry out middle school students competition training, for Beijing, Shanghai, Kuala Lumpur and other famous universities and lectures and preach, and many times with TopCoder, Baidu and NetEase Youdao and other well-known enterprises co-organized competitions, so that more it talent to show self-platform.

Catalogue-Part 1th language articles
Chapter 1th Introduction to Programming 1
1.1 Arithmetic Expressions 1
1.2 Variables and their inputs 3
1.3 Sequential Structure Programming 6
1.4 Branch Structure Programming 9
1.5 Annotations and Exercise 13
1.5.1 C language, C99, C11 and others 13
1.5.2 data type and input format 14
1.5.3 Exercise 15
1.5.4 Summary 16
The 2nd chapter of the cyclic structure design 18
2.1 For Loop 18
2.2 While Loop and Do-while Loop 22
2.3 The cost of the cycle 25
2.4 Input and output frame in the algorithm race 27
2.5 Annotations and Exercise 34
2.5.1 Exercise 34
2.5.2 Summary 36
3rd Chapter Array and string 37
3.1 Array 37
3.2 Character Array 41
3.3 Contest Topic Selection Lecture 45
3.4 Annotations and Exercise 53
3.4.1 Rounding and integer representation 54
3.4.2 Study Questions 55
3.4.3 black box test and online evaluation System 55
3.4.4 List of examples and exercise 56
3.4.5 Summary 59
4th Chapter functions and recursion 61
4.1 Custom functions and structs 61
4.2 function calls and parameter passing 65
4.2.1-shaped participation argument 65
4.2.2 Call Stack 66
4.2.3 using pointers as parameters 69
4.2.4 Beginner easy to make mistakes 71
4.2.5 array as parameter and return value 71
4.2.6 the function as a function parameter 73
4.3 Recursion 74
4.3.1 Recursive definition 74
4.3.2 Recursive function 75
4.3.3 C-Language support for recursion 75
4.3.4 segment error with stack Overflow 77
4.4 Contest Topic Selection Lecture 79
4.5 Annotations and Exercise 92
4.5.1 header files, side effects and other 93
4.5.2 Example List and exercise 95
4.5.3 Summary 99
Chapter 5th Introduction to C + + and STL 100
5.1 from C to C + + 100
5.1.1 C + + version Framework 101
5.1.2 References 102
5.1.3 String 103
5.1.4 again on Structure 105
5.1.5 Template 106
5.2 STL Preliminary 108
5.2.1 Sorting and retrieving 108
5.2.2 Indefinite length array: Vector 109
5.2.3 Collection: Set 112
5.2.4 Mapping: Map 113
5.2.5 stack, queue, and priority queue 115
5.2.6 Testing STL 120
5.3 Application: Large integer class 123
5.3.1 Large integer class BigInteger 124
5.3.2 Arithmetic 125
5.3.3 comparison operator 126
5.4 Examples of competition topics 127
5.5 Exercise 134
The 2nd part of the basic article
6th Chapter 139 Data Structure Fundamentals
6.1 Talking stacks and queues 139
6.2 Linked List 143
6.3 Trees and two fork trees 148
6.3.12 Fork Tree Number 148
6.3.22 cross-tree hierarchy traversal 150
6.3. Recursive traversal of 32 fork trees 155
6.3.4 Non-binary tree 160
6.4 Figure 162
6.4.1 connecting blocks with DFS 162
6.4.2 using BFS to find the shortest 164
6.4.3 topology sequencing 167
6.4.4 Euler circuit 168
6.5 Contest Topic Selection Lecture 170
6.6 Training Reference 175
Chapter 7th Violence Solution 182
7.1 Simple Enumeration 182
7.2 Enumeration Permutations 184
7.2.1 generating an arrangement of 1~n 184
7.2.2 generating the permutation of a re-set 185
7.2.3 Solution Tree 186
7.2.4 Next Rank 187
7.3 Subset Generation 188
7.3.1 Incremental Construction Method 188
7.3.2-bit vector method 188
7.3.3 Binary Method 189
7.4 Backtracking Method 191
7.4.18 Queens Question 191
7.4.2 Other Application Examples 194
7.5 Path Finding problem 198
7.6 Iterative Deepening Search 206
7.7 Contest Topic Selection Lecture 209
7.8 Training Reference 213
3rd part of the competition
8th. Efficient algorithm Design 220
8.1 Algorithm Analysis Preliminary 220
8.1.1 Progressive time Complexity 220
8.1.2 Upper bound Analysis 222
8.1.3 Divide and conquer law 223
8.1.4 Correct treatment of algorithmic analysis results 224
8.2 Re-talk about sorting and retrieving 225
8.2.1 Merge Sort 225
8.2.2 Quick Sort 227
8.2.32 points Find 227
8.3 Recursion and Division 229
8.4 Greedy Method 231
8.4.1 Backpack Related Questions 231
8.4.2 Interval Related issues 232
8.4.3 Huffman Code 234
8.5 Algorithm design and optimization Strategy 235
8.6 Contest Topic Selection Lecture 244
8.7 Training Reference 252
The 9th chapter of the Dynamic planning preliminary 259
9.1 Number Triangle 259
9.1.1 problem description and status definition 259
9.1.2 Memory Search and recursion 260
Dynamic planning on a 9.2 dag 262
9.2.1 DAG Model 262
9.2.2 the longest road and its dictionary order 262
9.2.3 the longest and shortest path to the fixed endpoint 264
9.2.4 Summary and application example 267
9.3 Multi-stage decision issues 270
9.3. The shortest path of the 1-segment graph 270
9.3.2 0-1 knapsack Problem 271
9.4 More Classic Models 274
Dynamic programming of 9.4.1 linear structure 274
Dynamic planning on the 9.4.2 tree 280
Dynamic programming of 9.4.3 complex State 284
9.5 Contest Topic Selection Lecture 290
9.6 Training Reference 303
The 10th Chapter Mathematics concept and Method 310
10.1 Number Theory Preliminary 310
10.1.1 Euclidean algorithm and the unique decomposition theorem 310
10.1.2 Eratosthenes Sieve Method 312
10.1.3 Extended Euclidean algorithm 313
10.1.4 congruence and modulus arithmetic 314
10.1.5 Application Example 316
10.2 Counting and probability basis 318
10.2.1 Yang Hui Triangle and two-term theorem 319
Counting problems in number theory of 10.2.2 321
10.2.3 Encoding and decoding 323
Preliminary study on the probability of 10.2.4 dispersion 324
10.3 Other math topics 327
10.3.1 Recursive 327
10.3.2 Mathematical Expectations 332
10.3.3 Continuous Probability 334
10.4 Contest Topic Selection Lecture 336
10.5 Training Reference 341
The 11th chapter of graph theory model and algorithm 352
11.1 Again talking about tree 352
11.1.1 No root tree to a root tree 352
11.1.2 expression Tree 353
11.2 Minimum Spanning Tree 355
11.2.1 Kruskal Algorithm 356
11.2.2 Contest Topic Selection Solution 358
11.3 Shortest Path Problem 359
11.3.1 Dijkstra Algorithm 359
11.3.2 Bellman-ford Algorithm 363
11.3.3 Floyd algorithm 364
11.3.4 Contest Topic Selection Lecture 365
11.4 Network Flow Preliminary 366
11.4.1 Maximum Flow problem 366
11.4.2 Augmented path Algorithm 367
11.4.3 minimum cut maximum flow theorem 369
11.4.4 minimum cost maximum flow problem 370
11.4.5 Application Example 372
11.5 Contest Topic Selection Lecture 375
11.6 Training Reference 379
11.7 Summary and Outlook 384
12th Advanced Topics 386
12.1 Knowledge Point selection and speaking 386
12.1.1 Automatic Machine 386
Classical problems and methods of 12.1.2 tree 392
12.1.3 Persistent Data Structure 397
Boolean operation for 12.1.4 polygons 399
12.2 Puzzle Selection 404
12.2.1 Data Structure 404
12.2.2 Network Stream 409
12.2.3 Mathematics 411
12.2.4 Geometry 415
12.2.5 Non-perfect algorithm 419
12.2.6 Miscellaneous Questions selected lecture 423
12.3 Summary and Exercise 446
Appendix A development environment and methods 455
A.1 Command Line 455
a.1.1 File System 455
a.1.2 Process 456
a.1.3 execution of the program 456
a.1.4 Redirection and Piping 457
a.1.5 Common Commands 457
A.2 Getting started with operating system scripting 458
a.2.1 batch processing under Windows 458
a.2.2 Linux under Bash script 459
a.2.3 talk about random numbers 460
A.3 Compiler and Debugger 460
a.3.1 installation and testing of GCC 460
a.3.2 Common compilation Options 461
a.3.3 GDB Introduction 462
a.3.4 GDB Advanced Features 463
A.4 About IDE 464
Main Bibliography 465

: Network Disk Download:Network Disk Download

Algorithmic Competition Introduction Classic (second edition) PDF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.