All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Queue weight possibilities. (Posted on 2007-05-15) Difficulty: 3 of 5
When a problem is being voted on in the Perplexus queue, the journeymen and scholars post comments and vote on the problem. A "thumbs up" (TU) scores +1 point, a "thumbs down" (TD) scores -1, and a comment with no vote scores 0.

Suppose a problem in the queue has A responses and a score of B. Find a formula that gives the number of possible combinations of TU's, TD's and nonvoting comments the problem has received.

Note: For example a problem with 3 responses and a score of +1 has two possibilities: {one TU and two comments} and {two TU's and one TD}

  Submitted by Jer    
No Rating
Solution: (Hide)
f(a,b) = (a + |b| + 2)/2 if a+b is even

f(a,b) = (a + |b| + 1)/2 if a+b is odd

Comments: ( You must be logged in to post comments.)
  Subject Author Date
re: solutionK Sengupta2007-05-16 11:44:31
re: solution (spoiler)Dej Mar2007-05-15 17:40:59
SolutionsolutionCharlie2007-05-15 16:54:39
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information