.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Need an algorithm to determine tournament bracket

Posted By:      Posted Date: October 23, 2010    Points: 0   Category :ASP.Net


I need an algorithm to determine who match who in the tournament bracket, say I have 32 ( number could be flexible) contestants seeded 1 to 32, at round 1,  seed 1 matches with 32, seed 2 with 31 and so forth. What about 2nd, 3rd, 4th and 5th round? I need an algorithm to be programmed into computer.


View Complete Post

More Related Resource Links

Objects to model tournament bracket



I am asked to save and output a tournament bracket, like NCAA or US Open, two parties play and the winner move on to next round. To display the whole bracket, I need to find a way to maintain the hierarchy, say I have the following class:

public class Contest
    public int ContestantId1;
    public int ContestantId2;
    public int RoundNumber;

This is good for a single contest inside the tournament, but how do I change the class or use other classes to support hierarchy? 

Also if possible can someone show me the best way to model this in SQL server tables?


Determine whether Forms Server is installed on a server

Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

Image processing, determine white space and crop



I have created a image upload for our ID card system to allow users to upload new images, edit them and submit for approval.  This is all working well with a combination of asp.net (c#) and jquery to give a seemless editor etc.

We have had a few users who I cannot believe have scanned a photo of themself and then just submitted it with the A4 page of white and little photo.

I am wondering if anyone can help with a suggestion on how I could possibly reduce the load of these coming through (I can't believe they can be this stupid), it stipulates UK passport standards.

Would my only option be to check for a single continues colour that occurs and if it reaches a certain percentage point say 60% then to just send back an error stating they need to crop the image.

Can anyone help with providing sample or that I can use to move this one on.

I am still in disbelief on this one.  the other one is they take a photo of whole body and other in it and cut straight down middle chopping the people out but supplying a photo that no use for an id photo card....but that I can't imagine being solved programatically as I need to determine where their face dimensions are and what percentage of the actual photo is taken up by it and if it below a threshold reject it.

{End Bracket}: The Unconference: Where Geeks JIT Together


This month the author takes us on a tour of the unconference and other unconventional get-togethers. Learn how these unique approaches to conferences are being widely adopted.

Steven M List

MSDN Magazine May 2009

{ End Bracket }: Translate This Page


This month we examine the Microsoft translation Web service and show you how you can incorporate translation services into your own Web application.

Sandor Maurice & Vikram Dendi

MSDN Magazine April 2009

{ End Bracket }: Perfect API Design


Why is good API design so difficult when all you really need is perfection? Intrigued? Read on.

James Waletzky

MSDN Magazine March 2009

{ End Bracket }: Your Innovative Ideas


Having that next great innovative idea is only half the battle-getting it heard is the real challenge.

Eric N. Bush

MSDN Magazine February 2009

{ End Bracket }: The Emergence Of Machine Translation


Vikram Dendi looks at how machine translation is poised to change the world and why it is so important to deliver information in multiple languages.

Vikram Dendi

MSDN Magazine January 2009

{ End Bracket }: What Makes A Good Software Tester?


In this month's installment, James McCaffrey talks about the qualities and skills he looks for when searching for great software testers.

Dr. James McCaffrey

MSDN Magazine December 2008

{ End Bracket }: Engineers Who Write


Writing is good exercise for developers and software engineers. Richard Ward explains how writing can help you focus your thoughts and communicate more precisely.

Richard Ward

MSDN Magazine November 2008

{ End Bracket }: Don't Be Afraid To Throw Away Your Work


With today's processing power at your disposal, Josh Phillips recommends speculative computation-performing operations ahead of time even if you may never need the results.

Josh Phillips

MSDN Magazine October 2008

{ End Bracket }: A New Era In Visual Simulation


The ESP simulation engine, the basis for Microsoft Flight Simulator, handles visual rendering, physics, sound, and other virtual world capabilities. Take a look inside.

Todd Landstad

MSDN Magazine September 2008

{ End Bracket }: U.S. Imagine Cup


With the annual Imagine Cup student competition, competitors were asked to imagine a world where technology enables a sustainable environment, just as Microsoft is doing in its own business practices.

Mitch Irsfeld

MSDN Magazine August 2008

{ End Bracket }: Customize Windows Home Server


Chris Gray discusses custom applications he's developed for Windows Home Server and explores applications for energy savings.

Chris Gray

MSDN Magazine July 2008

{ End Bracket }: Election Results Even Voters Can Trust


Surprisingly, cryptography can be applied to the electoral process to allow every individual voter to check the integrity of an election tally. Find out how here.

Josh Benaloh

MSDN Magazine June 2008

{ End Bracket }: Rich and Reach Applications


Rich or reach, rich or thin, thick or fat? Thus went the battle over how much functionality a client should have. Here's how it all turned out.

Terry Crowley

MSDN Magazine May 2008

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend