Questions tagged [tournament]

The tournament tag refers to any tournament style program. Only use when the question directly relates to programming tournament style programs.

112 questions
0
votes
2 answers

Finding smallest number using tournament bracket

I'm writing a program that has to find the smallest number through the tournament bracket. For example there is an array int[] a = new int[4] {4, 2, 1, 3} and by comparing numbers standing next to each other I've to choose the smallest one.…
mikro098
  • 2,173
  • 2
  • 32
  • 48
0
votes
1 answer

Error running Google Apps Script for Creating a Tournament Bracket

Trying to follow this Google Apps Script Tutorial on creating a tournament bracket through Google Sheets: https://developers.google.com/apps-script/articles/bracket_maker?hl=en When running the script, I get the following error message: TypeError:…
0
votes
2 answers

dominating set of a tournament graph

I am writing an algorithm to find the dominating set of a tournament graph. Is the minimum spanning tree of a directed graph equivalent to the dominating set of the graph? In other words, if I find the smallest MST for the tournament graph (by…
el diablo
  • 2,647
  • 2
  • 20
  • 22
0
votes
4 answers

Get greatest n numbers from an array using a "tournament" (Java)

I have an array e.g. of length 10: Population = {1,3,4,2,7,-2,0,8,9,5}. I generate two random numbers between 0-9 (e.g. 4 and 6). So then I check the 4th and 6th elements (7, 0) and the "winner" is the number that is greater. So 7 goes into the…
mmgro27
  • 475
  • 1
  • 8
  • 18
0
votes
1 answer

Best Fit Algorithm To Evenly Place Matchups In Rounds

I need an algorithm that can take any number of match-ups like you can see below and group them by round evenly with each participate in it once if possible. I generated the match-ups below by round for 8 and 3 teams. I am having issues filling up…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

root index in tournament algorithm

I am struggling to establish the 'O' complexity of finding the kth smallest element in an array using tournament algorithm. I have formed the reverse-tree ,with the smallest element at the root node of the inverted tree.[(n-1)*log n] Now we…
IUnknown
  • 9,301
  • 15
  • 50
  • 76
0
votes
0 answers

Tournament generation: Bracket placement

I am currently working on the generation of a tournament bracket system, but I can't come up with a good algorithm for the following: I have a List, where TournamentRound looks like follows: public class TournamentRound { public int…
Shion
  • 1,499
  • 2
  • 14
  • 29
0
votes
3 answers

Algorithm for placement of 32 seeded players in a 128 person tournament

I am trying to create a tennis tournament simulator, where the outcomes of the games are random (sort of). At Grand Slams there are 128 players, 32 of which are seeded. At the moment I am trying to place the seeds in the draw at the appropriate…
whitebloodcell
  • 308
  • 1
  • 4
  • 10
0
votes
0 answers

Bracket Tournament planning (optaplanner)

I am trying to create a implementation to plan a tournament schedule per round. Als called bracket Tournament. I am trying to use OptaPlanner for this, but the documentation is not that clear to me. I have the following…
Jaavaaan
  • 122
  • 1
  • 4
0
votes
1 answer

Modelise tournament application with cake php

I want to create a tournament application with cakePHP and I need some help to create Database and linking Models correctly. My ultimate goal is : - add/edit/delete teams (i dont need list of players) - add/edit/delete matchs with 2 teams per…
kesm0
  • 847
  • 1
  • 11
  • 20
0
votes
3 answers

Any Tournament APIs out there?

Are there any APIs for helping running tournaments that can draw brackets, count scores, etc? Something on PHP/javascript would be nice but I can't find any. Thanks.
serg
  • 109,619
  • 77
  • 317
  • 330
0
votes
1 answer

JavaScript to sort tournament seeds

I have used some posts on here to create a tournament bracket system using JavaScript and Jquery to show the brackets. I have 16 teams seeded 1-16. At the moment my sorted seeds are as follows: [1,8],[4,5],[2,7],[3,6] As you can see, it works to…
germainelol
  • 3,231
  • 15
  • 46
  • 82
0
votes
2 answers

general algorithm of tournament selection

I have a question about how to use a tournament selection in GA. Suppose that I have 100 individuals as an initial population and then I want to apply tournament selection for n generations, so I end up with only 20% of chromosomes for each…
Layla
  • 5,234
  • 15
  • 51
  • 66
0
votes
1 answer

Sides Elimination in directed cyclic graph or Tournament (graph)

I wanted an algorithm to eliminate the sides of a cyclic directed graph or mostly a Tournament and output a tree kind of structure with minimum number of sides. The elimination should be based on the weight of the sides, as described below in as a…
Sudhaker
  • 785
  • 1
  • 6
  • 13
-1
votes
1 answer

Tournament lab CS50: list index out of range

I am new to python and am doing an lab 6 problem in CS50 but got into the error: List index out of rang. Even though I have recheck many times and also watch the hint video of the course,I still couldn't find out a way to fix this problem. Please…
tth249
  • 1
  • 1