Competitive programming

From Wikipedia, the free encyclopedia
  (Redirected from Online judge)
Jump to navigation Jump to search
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] 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.)

History[edit]

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

Overview[edit]

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 competitions[edit]

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[edit]

  • ACM-ICPC - one of the oldest competitions, for students of universities in groups of 3 persons each
  • ACSL - computer science competition with written and programming portions, for middle/high school students
  • Google Code Jam - competition held from 2003, provided and sponsored by Google
  • Facebook Hacker Cup - competition held from 2011, provided and sponsored by Facebook
  • HackerRank Ad Infinitum[5] - Math Programming Contest by HackerRank
  • CodeChef Cook-Off[6] - an ACM-ICPC style programming contest held on second last Sunday of every month
  • CodeChef LunchTime[6] - a Junior Programming series held on last Sunday of every month, for middle/high school students
  • CodeChef SnackDown[7] - An annual multi round global programming contest held by CodeChef
  • Codeforces Round[8] - typically two hour contest held every week since 2010 by Codeforces.
  • IEEEXtreme Programming Competition - annual competition for IEEE Student Members held since 2006 by IEEE
  • IOI - one of the oldest competitions, for secondary school students
  • ShowCode - Competitive Coding competitions. prizes range £500 - £10,000
  • Topcoder Open (TCO) - Algorithm - competition held since 2004 by Topcoder
  • Yandex Algorithm - competition held since 2013 by Yandex;

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[edit]

Artificial intelligence and machine learning[edit]

  • Kaggle – machine learning competitions.
  • Google AI Challenge – bi-annual competitions for students that ran 2009 to 2011
  • Halite[11] – An AI programming challenge. Halite I was held from November 2016 to February 2017 and Halite II is being held from October 23, 2017 to January 22, 2018. Both are sponsored by Two Sigma and Cornell Tech[12] Google has also provided support for Halite II[13]
  • Russian AI Cup open artificial intelligence programming contest
  • CodeCup.nl – AI board game competition held annually since 2003. Game rules get published in September and the final tournament is held in January.

Online contest and training resources[edit]

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
4348[14] HackerRank HackerRank 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
2847[15] 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
10575[16] 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 "hacking phase", virtual contests, trainings etc. codeforces.com
18106[17] HackerEarth Bangalore, India based company providing online contest like environment aiming at providing recruitment assessment solutions. www.hackerearth.com
20607[18] 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
45405[19] CodinGame Puzzles (increasing difficulty), code golf. Hosts regular online competitions (AI сhallenges, optimization problems) www.codingame.com
48348[20] InterviewBit Gamifies the experience of practicing for your interview and includes lots of sample problems. www.interviewbit.com
54497[21] 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
48463[22] Project Euler Large collection of computational math problems (i.e. not directly related to programming but often requiring programming skills for solving). projecteuler.net
84407[23] AtCoder AtCoder is a contest platform created by a team of highly rated Japanese competitive programmers. atcoder.jp/
62152[24] 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
97517[25] POJ Peking University online judge for ACM/ICPC created by Ying Fuchen, Xu Pengcheng and Xie Di. Contains 3,055 problems. www.poj.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
914887[26] Riddles.io Long running competitive programming competitions with prizes since 2016. riddles.io
2296133[27] CodeCup Annual international AI board game programming competition organized by the Dutch Olympiad in Informatics since 2003.[28] CodeCup.nl
NA CS Academy Hosts regular online competitions with prizes. csacademy.com
NA UVa Online Judge Contains over 4,500 problems for practising. Hosts regular online competitions. uva.onlinejudge.org
NA Kattis Sweden-based competitive programming website in English www.kattis.com
NA CodeWars Users gain "honor" and rise in "ranks" by solving problems of varying difficulties in various languages. codewars.com
A2OJ Virtual online contests platform, ladder is a powerful feature that enable users to train on solve specific type problems https://a2oj.com/

See also[edit]

References[edit]

  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. ^ Programming Challenges (Skiena & Revilla) ISBN 0387001638, ISBN 978-0387001630
  5. ^ "Programming problems and Competitions :: HackerRank". HackerRank. Retrieved 2016-02-20.
  6. ^ a b c "COMPETE - CodeChef". codechef.com. Retrieved 2016-02-20.
  7. ^ "Snackdown Home - CodeChef". codechef.com.
  8. ^ "Codeforces contests". Retrieved 2018-10-12.
  9. ^ "Programming problems and Competitions :: HackerRank". HackerRank. Retrieved 2016-02-20.
  10. ^ "Al Zimmermann's Programming Contests". azspcs.com.
  11. ^ "Halite Artificial Intelligence Programming Challenge". www.halite.io.
  12. ^ "Two Sigma Announces Public Launch of Halite". tech.cornell.edu.
  13. ^ "Halite helps students and developers compete to build better AI on Google Cloud Platform".
  14. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  15. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  16. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  17. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  18. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  19. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  20. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  21. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  22. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  23. ^ "atcoder.jp Traffic Statistics". SimilarWeb. Retrieved 2018-10-12.
  24. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  25. ^ "Security Screen". www.similarweb.com. Retrieved 2018-10-12.
  26. ^ "Security Screen". www.similarweb.com. Retrieved 2017-02-06.
  27. ^ "Codecup.nl Analytics". www.similarweb.com. Retrieved 2018-09-16.
  28. ^ Wevers, Lesley (2014). "Monte-Carlo Tree Search for Poly-Y" (PDF). University of Twente. Archived from the original (PDF) on 13 April 2017. Retrieved 16 September 2018.

External links[edit]

Open-source project for running contests