Competitive programming

Open championship on programming Yandex.Algorithm, August 22, 2013.

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] Facebook[3] and IBM.[4] 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.)

History

One 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 since 2000, and is strongly connected to the growth of the Internet, which facilitates holding international contests online, eliminating geographical problems.

Overview

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.

Notable competitions

There 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

Online contest and training resources

The 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:

Similarweb Rank Name Description Website
5808[9] HackerRank "Most Innovative" Competitive Programming website. It was started in 2012, and offers programming problems in different domains of Computer Science. It also hosts annual Codesprints which help connect the coders and Silicon Valley startups. hackerrank.com
12181[10] GeeksforGeeks A programming website with articles and practice platform. The site is mainly targeted for programming interview preparation. It was started in 2009 and competitive programming platform Practice was added in 2015 geeksforgeeks.org
16198[11] CodinGame Puzzles (increasing difficulty), code golf. Hosts regular online competitions (AI Challenges, optimization problems) www.codingame.com
17667[12] Codeforces Russian resource, maintained by Saratov State University, which mostly provides frequent (up to two per week) short contests. Special features: ability to check correctness of other contestants' solutions during "coding phase", virtual contests, trainings etc. codeforces.com
27074[13] CodeChef Maintained by Directi, it hosts a 10-day-long contest and a couple of short contests every month (one IOI styled and other ACM ICPC styled), and provides a contest hosting platform to educational institutions for free. The top two winners of the long contest win cash prizes while the top 10 global get a tee-shirt. www.codechef.com
28109[14] TopCoder US resource and company, which organizes contests and also provides industrial problems as a kind of free-lance job; it offers dozens of short contests and several long ("marathons") every year. Specific feature - participants have a chance to check correctness of other contestants' solutions after coding phase and before final automatic testing (so called "challenge phase"). www.topcoder.com
31587[15] Project Euler Large collection of computational math problems (i.e. not directly related to programming but often requiring programming skills for solving). projecteuler.net
32843[16] HackerEarth Bangalore, India based company providing online contest like environment aiming at providing recruitment assessment solutions. www.hackerearth.com
45824[17] SPOJ Polish online judge system which provides a lot of problems for training, and provides a platform for other organizers to host their programming contests. www.spoj.com
49763[18] POJ Peking University judge online for ACM/ICPC create by Ying Fuchen, Xu Pengcheng and Xie Di. Contains 3,055 problems. www.poj.org
125102 UVa Online Judge Contains over 3,500 problems for practising. Hosts regular online competitions. uva.onlinejudge.org
172157 Coderbyte Contains programming challenges you can solve in an online editor in one of nine programming languages. Also provides algorithm tutorials, introductory JavaScript courses, video tutorials, and job interview preparation material. www.coderbyte.com

See also

References

  1. "Google Code Jam". google.com. Retrieved 2016-02-20.
  2. "TCO12 Sponsor: Google - TCO 12". topcoder.com. Archived from the original on February 16, 2012.
  3. "Facebook Hacker Cup". Facebook. Retrieved 2016-02-20.
  4. ACM International Collegiate Programming Contest World Finals Sponsored by IBM
  5. 1 2 3 "COMPETE - CodeChef". codechef.com. Retrieved 2016-02-20.
  6. "Snackdown Home - CodeChef". codechef.com.
  7. "Programming problems and Competitions :: HackerRank". HackerRank. Retrieved 2016-02-20.
  8. "Programming problems and Competitions :: HackerRank". HackerRank. Retrieved 2016-02-20.
  9. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  10. "Security Screen". www.similarweb.com. Retrieved 2016-07-09.
  11. "Security Screen". www.similarweb.com. Retrieved 2016-10-19.
  12. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  13. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  14. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  15. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  16. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  17. "Security Screen". www.similarweb.com. Retrieved 2015-10-18.
  18. "Security Screen". www.similarweb.com. Retrieved 2016-04-20.

External links

Open-source project for running contests
This article is issued from Wikipedia - version of the 11/17/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.