Tips on Competitive Programming
Section 1.1–1.2
- Dr. Mayfield and Dr. Lam
Tips on Competitive Programming Section 1.11.2 Dr. Mayfield and Dr. - - PowerPoint PPT Presentation
Tips on Competitive Programming Section 1.11.2 Dr. Mayfield and Dr. Lam Department of Computer Science James Madison University Sep 18, 2015 Competitive Programming Core directive: Given well-known computer science problems, solve them
Sep 18, 2015 Tips on Competitive Programming 2 of 16
Sep 18, 2015 Tips on Competitive Programming 3 of 16
Sep 18, 2015 Tips on Competitive Programming 4 of 16
Sep 18, 2015 Tips on Competitive Programming 5 of 16
Sep 18, 2015 Tips on Competitive Programming 6 of 16
◮ OR: Use comments as stubs ◮ Come back and add documentation afterwards!
Sep 18, 2015 Tips on Competitive Programming 7 of 16
Sep 18, 2015 Tips on Competitive Programming 8 of 16
Sep 18, 2015 Tips on Competitive Programming 9 of 16
Sep 18, 2015 Tips on Competitive Programming 10 of 16
◮ Document them first!
◮ Frequently-used methods, debug macros, boilerplate, etc.
Sep 18, 2015 Tips on Competitive Programming 11 of 16
Sep 18, 2015 Tips on Competitive Programming 12 of 16
◮ Often the most theory/math-minded member ◮ Quickly comes up with ideas on how to solve problems ◮ Writes psuedocode solutions on paper
◮ Often the member with the highest attention to detail ◮ Translates psuedocode solutions quickly and accurately ◮ Handles the actual testing and submission process
◮ Often the most engineering-focused member ◮ Can quickly identify ways that code could break ◮ Works with solver and coder to identify and fix defects
Sep 18, 2015 Tips on Competitive Programming 13 of 16
◮ Try to solve a wide range of problem types ◮ Try to solve at least a few hard problems
Sep 18, 2015 Tips on Competitive Programming 14 of 16
◮ Read all the problems ◮ Type in boilerplate code and solve the easiest problem ◮ Ask the administrators early about hardware/software issues
◮ It’s a marathon, not a sprint ◮ Re-evaluate problems occasionally throughout competition ◮ Check the scoreboard often for hints ◮ Keep in mind that there is no partial credit
Sep 18, 2015 Tips on Competitive Programming 15 of 16
Sep 18, 2015 Tips on Competitive Programming 16 of 16