OPTIMIZING A PRIORITY QUEUE IN A COMPUTER NETWORK
Optimizing a priority queue for a computer network. In an embodiment, instructions are executed by a server computer, which cause the server computer to maintain the priority queue with a plurality of queue entries, wherein the priority queue includes a first queue entry and a second queue entry, and a first score is associated with the first queue entry, and a second score is associated with the second queue entry; receive, from a first client computer, input indicating performance of a first activity associated with the first queue entry; receive, from a second client computer, input indicating performance of a second activity associated with the second queue entry; update, at the server computer, the first score by the first amount and the second score by a second amount; change, at the server computer, the position of the first queue entry and the second queue entry in the priority queue.
1 . A computer system for maintaining a priority queue across a plurality of computers in a computer network comprising:
a memory with a set of instructions;
one or more processors coupled to the memory, wherein the one or more processors execute the set of instructions, which causes the one or more processors to:
maintain, at a server computer, the priority queue with a plurality of queue entries;
maintain, at the server computer, for each queue entry of the plurality of queue entries, a score associated with the queue entry;
wherein the priority queue includes a first queue entry and a second queue entry;
wherein a first score is maintained for the first queue entry, and a second score is maintained for the second queue entry;
receive, at the server computer, from a first client computer, input indicating performance of a first activity associated with the first queue entry;
in response to receiving input indicating performance of the first activity associated with the first queue entry, update, at the server computer, the first score by a first amount;
wherein the first amount is based, at least in part, on the first activity;
in response to updating the first score by the first amount, change, at the server computer, the position of the first queue entry in the priority queue;
receive, at the server computer, from a second client computer, input indicating performance of a second activity associated with the second queue entry;
in response to receiving input indicating performance of the second activity associated with the second queue entry, update, at the server computer, the second score by a second amount;
wherein the second amount is based, at least in part, on the second activity;
wherein the second amount is different than the first amount;
in response to updating the second score by the second amount, change, at the server computer, the position of the second queue entry in the priority queue.