-- Users({{whos_here.users.length}}/{{whos_here.count}}):{{whos_here.server | uhunt_duration}}
{{u.uname}}:{{u.since | uhunt_duration}}

You are signed in as {{signed_in_as}}.
you are currently invisible

To sign in, please login to the UVa Online Judge site.

If you have done so, click the sign in button below.

Invisible
{{signed_in_user}}
uHunt
hunt problems that matter

uHunt is a tool for UVa online-judge that keeps statistics, provide selections of problems to solve, and exposes a web API for other web developers to build upon it.

To quickly submit your solution, use UVa Quick Submit.


Username not found (it is case sensitive).

Your UVa username :

Search Problem Number :  

{{search_error}}

{{search_number}} - {{search_title}}   [ statistics / discuss]   (hide)

View : [ last | yours({{your_last_submissions.length}}) ]     Show : [ 5 | 10 | 50 | 100 | 500   Submissions
  # Rank   User (username)   Verdict Lang Time Submit Time
{{s.sid}}  {{s.rank | uhunt_rank }} {{s.name + ' (' + s.uname + ')' }}   {{ s.ver | uhunt_verdict:'name'}} {{s.lan | uhunt_language:'name' }} {{s.run | uhunt_format_ms:s.ver }} {{s.sbt | uhunt_format_time:2 }}
View : [ the-top | nearby ]     Show : [ 5 | 10 | 50 | 100 | 500   Ranklist
  # Rank   User (username) Lang Time Submit Time
{{s.sid}}  {{s.rank | uhunt_rank }} {{s.name + ' (' + s.uname + ')' }} {{s.lan | uhunt_language:'name' }} {{s.run | uhunt_format_ms }} {{s.sbt | uhunt_format_time:1 }}


Show : 5 | 10 | 25 | 50 | 100   Live Submissions (hide)
    #   Problem Title   User (username)   Verdict Lang Time Best Rank Submit Time
 {{s.sid}} {{s.pid | uhunt_problem:'number'}} discuss {{s.pid | uhunt_problem:'title'}} {{s.name + ' (' + s.uname + ')' }}  {{ s.ver | uhunt_verdict:'name'}} {{s.lan | uhunt_language:'name' }} {{s.run | uhunt_format_ms }} {{s.p.mrun | uhunt_format_ms}} {{s.rank | uhunt_rank }} {{s.sbt | uhunt_format_time:2 }}

View Live Submissions


What is uHunt

uHunt is my personal (self-financed) project. It is a tool that helps me (and others) to find interesting algorithm problems to solve at UVa Online Judge as well as keeping statistics of the currently solved problems. uHunt also exposes web API for other web developers that are interested in querying UVa submissions data and build their own tools.

How uHunt was invented

I love solving programming contest (algorithm) problems. Back at year 2000, the only authoritative Online Judge that hosts good quality of past programming contest problems was the UVa Online Judge. However, as a newbie at that time, I was confused and frustrated in picking the next problem to solve. I want the next problem to match my current skill (i.e, not too hard). That was what triggered me to build a tool (a website) to organize the problems according to the difficulty level. At that time I only use the tool for myself, but over time, people around the world began to recognize the website and started using it.

How uHunt evolved over time (development challenges)

I keep using the tool myself and improve it bit by bit whenever I have spare time. Along the way, I learned a few web programming technologies like HTML, Javascript, PHP, MySQL. However, as the number of concurrent users accessing the website grows to more than 100 per day, the (shared) server began to crumble. This is because the tool requires high interactivity. It tries to display the most up-to-date statistics and provide chat functionality for small discussions. The Apache web server was not good enough to handle such workload. Fortunately, a new platform emerged (node.js) that solved the c10k problem which allows a regular server to handle thousands of concurrent clients with far smaller memory footprint. This was the perfect platform to switch to. Building uHunt as a node.js application was easy as it uses Javascript which I'm familiar about. However, there was another problem, the database (MySQL) was also beginning to crumble as the number of rows in the submission table went close to 10 millions (UVa OJ has that many submissions and growing). The time to update/maintain the indexes is so high that it increases the latency (responsiveness) of the website. I began to search for new database technology and stumbled upon a new exciting adaptive indexing technology called Database Cracking. It was perfect for my needs as it can process a large amount of tuples with low latency for each individual query. Moreover, it quickly gets faster (adapt) as more queries are performed! I built my own version of the Database Cracking using C++ and connect it to my node.js application. Since then, uHunt has been running fast and attracting even more users (reaching 200+ concurrent users per day). Thanks to the UVa admin for granting uHunt a direct database access which allows uHunt to have a timely response to user submissions. With these powerful technologies, it does scale well and allows me to expose uHunt as a web API for other tools to build upon. The web API is like a JSON data feed that can be used by other web developers who are interested in building variety of other tools for UVa OJ such as virtual contests, custom ranklists, or any other statistical tools.

Who has been using uHunt

uHunt has been heavily used by the National University of Singapore to train computer science students for ACM ICPC. The popularity of uHunt increases even more when universities around the world included uHunt and the Competitive Programming book in their list of references. The book exercises are integrated with uHunt for self-training.

It has been an amazing experience to see uHunt grows :)



© Felix Halim 2016