词条 | Competitive programming | |||||||||||||||||||||||||||||||||||||||
释义 |
Competitive programming is a mind sport usually held over the Internet or a local network, involving participants trying to program according to provided specifications. Contestants are referred to as sport programmers. Competitive programming is recognized and supported by several multinational software and Internet companies, such as Google[1][2] and Facebook.[3] There are several organizations who host programming competitions on a regular basis. A programming competition generally involves the host presenting a set of logical or mathematical problems to the contestants (who can vary in number from tens to several thousands), and contestants are required to write computer programs capable of solving each problem. Judging is based mostly upon number of problems solved and time spent for writing successful solutions, but may also include other factors (quality of output produced, execution time, program size, etc.) HistoryOne of the oldest contests known is ACM-ICPC which originated in the 1970s, and has grown to include 88 countries in its 2011 edition. Interest in competitive programming has grown extensively{{quantify|date=October 2012}} since 2000, and is strongly connected to the growth of the Internet, which facilitates holding international contests online, eliminating geographical problems. Overview{{Original research section|date=February 2018}}The aim of competitive programming is to write source code of computer programs which are able to solve given problems. A vast majority of problems appearing in programming contests are mathematical or logical in nature. Typical such tasks belong to one of the following categories: combinatorics, number theory, graph theory, geometry, string analysis and data structures. Problems related to artificial intelligence are also popular in certain competitions. Irrespective of the problem category, the process of solving a problem can be divided into two broad steps: constructing an efficient algorithm, and implementing the algorithm in a suitable programming language (the set of programming languages allowed varies from contest to contest). These are the two most commonly tested skills in programming competitions. In most contests, the judging is done automatically by host machines, commonly known as judges. Every solution submitted by a contestant is run on the judge against a set of (usually secret) test cases. Normally, contest problems have an all-or-none marking system, meaning that a solution is "Accepted" only if it produces satisfactory results on all test cases run by the judge, and rejected otherwise. However, some contest problems may allow for partial scoring, depending on the number of test cases passed, the quality of the results, or some other specified criteria. Some other contests only require that the contestant submit the output corresponding to given input data, in which case the judge only has to analyze the submitted output data. Online judges are online environments in which testing takes place. Online judges have ranklists showing users with the biggest number of accepted solutions and/or shortest execution time for a particular problem.[4] Notable competitionsThere are two types of competition formats: short-term and long-term. Each round of short-term competition lasts from 1 to 3 hours. Long-term competitions can last from a few days to a few months. Short-term
In most of the above competitions, since the number of contestants is quite large, competitions are usually organized in several rounds. They usually require online participation in all rounds except the last, which require onsite participation. A special exception to this is IEEEXtreme, which is a yearly 24-hour virtual programming competition. The top performers at IOI and ACM-ICPC receive gold, silver and bronze medals while in the other contests, cash prizes are awarded to the top finishers. Also hitting the top places in the score tables of such competitions may attract interest of recruiters from software and Internet companies. === Long-term ===
Artificial intelligence and machine learning
Online contest and training resourcesThe programming community around the world has created and maintained several internet-resources dedicated to competitive programming. They offer standalone contests with or without minor prizes. Also the past archives of problems are a popular resource for training in competitive programming. These include:
See also
References1. ^{{cite web|url=http://code.google.com/codejam|title=Google Code Jam|work=google.com|accessdate=2016-02-20}} 2. ^{{cite web|url=http://community.topcoder.com/tco12/overview-sponsor/tco12-sponsor-google/ |title=TCO12 Sponsor: Google - TCO 12 |work=topcoder.com |deadurl=yes |archiveurl=https://web.archive.org/web/20120216103218/http://community.topcoder.com/tco12/overview-sponsor/tco12-sponsor-google/ |archivedate=February 16, 2012 }} 3. ^{{cite web|url=http://www.facebook.com/hackercup|title=Facebook Hacker Cup|work=Facebook|accessdate=2016-02-20}} 4. ^[https://www.amazon.com/Programming-Challenges-Steven-S-Skiena/dp/0387001638 Programming Challenges (Skiena & Revilla)] {{ISBN|0387001638}}, {{ISBN|978-0387001630}} 5. ^{{cite web|url=https://www.hackerrank.com/infinitum|title=Programming problems and Competitions :: HackerRank|work=HackerRank|accessdate=2016-02-20}} 6. ^1 2 {{cite web|url=http://www.codechef.com/contests|title=COMPETE - CodeChef|work=codechef.com|accessdate=2016-02-20}} 7. ^{{cite web|url=http://snackdown.codechef.com|title=Snackdown Home - CodeChef|work=codechef.com}} 8. ^{{cite web|url=https://codeforces.com/contests|title=Codeforces contests|accessdate=2018-10-12}} 9. ^{{cite web|url=http://www.hackerrank.com/contests/w22|title=Programming problems and Competitions :: HackerRank|work=HackerRank|accessdate=2016-02-20}} 10. ^1 Lasse Hakulinen. [https://www.academia.edu/1606336/Survey_on_Informatics_Competitions_Developing_Tasks Survey on Informatics Competitions: Developing Tasks] – Olympiads in Informatics, 2011, Vol. 5, 12–25. 11. ^{{cite web|url=https://www.halite.io|title=Halite Artificial Intelligence Programming Challenge|work=www.halite.io}} 12. ^{{cite web|url=https://tech.cornell.edu/news/two-sigma-announces-public-launch-of-halite-ai-coding-game|title=Two Sigma Announces Public Launch of Halite|work=tech.cornell.edu}} 13. ^{{cite web|url=https://cloud.google.com/blog/big-data/2017/10/halite-helps-students-and-developers-compete-to-build-better-ai-on-google-cloud-platform|title=Halite helps students and developers compete to build better AI on Google Cloud Platform}} 14. ^1 {{cite web|url=http://lesley.ws/files/polyy14.pdf|title=Monte-Carlo Tree Search for Poly-Y|last=Wevers|first=Lesley|year=2014|accessdate=16 September 2018|location=University of Twente|archive-url=https://web.archive.org/web/20170413210719/http://lesley.ws/files/polyy14.pdf|archive-date=13 April 2017}} External links
1 : Programming contests |
|||||||||||||||||||||||||||||||||||||||
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。