Download presentation
Presentation is loading. Please wait.
Published byAnna Pearson Modified over 8 years ago
1
ITSA Programming Challenge 2005 http://www.cs.um.edu.mt/~itsapc05 Gordon Pace, Joseph Cordina & Sandro Spina (the judges) Organisers Sponsors Problem setting and judging
2
The Competition 48 hour programming competition. Prizes for lightning & normal submissions. Fair problem, accessible to all programmers. Judging criteria are to be objective.
3
The problem Write a program which: Given a number of Tetris-like pieces … Rotate them and move them around so as to … Pack them into as small a rectangle as the program can.
4
An example Input Output
5
The Teams 8 teams registered, 5 submitting lightning solutions, 6 submitting standard submissions.
6
Farm Squad 4 Richard Vella Mark Chircop William Borg Barthet Matthew Felice Pace
7
Forever Young Mario Gauci Karl Cassar “… 1.First you find the smallest area in which the shapes fit (ex. 4x4). 2.Then you try to place the shapes in that area 3.If they fit stop as you have found the smallest area possible (using this algorithm). 4.Otherwise store your result and try again with a larger area. To fit the shapes to the area we tried to fit the shape that fits best to the border. Then the border take would also include the outline of the border.”
8
HyperDonkeys Marco Muscat, Jonathan Caruana, Neville Grech, Stephen Fenech & Alan Cassar “All the shapes are queued in a random order and a placing algorithm will place them in the best way possible in that given order. The placing algorithm considers all rotations of every shape and places them on the top and right hand side of the first shape. To optimise the results the placing algorithm is placed in a genetic algorithm that alters and tries to optimise the order of the blocks, using crossovers and mutations that span over a number of generations.” “We used C# to code the solution.”
9
Team A Gaetano Caruana & Jimmy Borg “indunajna li kien difficli immens li niddecifraw u namlu hard coded sort of l-moves li jridu jsiru. Ghaldaqstant morna al AI technique.....Genetic Algorithm. Basikament ikollok popolzjaoni ta solutions u min dik l-popoluzjoni jkolli giex operations mutation u crossovers. Permezz ta dawn l-operations l-popolazjoni dejjem sort of timmatura u permezz ta’ hekk is-solution l-iktar fit tirbah. F’dan l-kaz l-iktar fit hija s-soluzjoni bl inqas area u bl izghar sides possibli”
10
Team1337 David Bailey & Ruth Schembri “We tried to place shapes on top of each other and fit them together by moving them around in a spiral and rotating all the time … but we had to change the idea drastically on Sunday” Used Borland Delphi “because of its ease of use but fast compiling and code execution”.
11
X3M Carmelo Ebejer & Chris Grech “We spent quite some time thinking of optimisations to reduce the complexity of the problem. After that, our main concern was choosing a suitable programming language. We chose C# over C, C++ or Pascal because of quicker development time.”
12
The Judging 10 preset problems. Available from the beginning but in encrypted form. Programs ranked according to size of the smallest bounding rectangle: best (smallest) 50 points, second 30 points, third 20 points, fourth 10 points and fifth 5 points. In case of overall tie, other rules were given but were not needed.
13
Judging Problem 07
14
Teams HyperDonkeys, Farm Squad 4 and X3M produced (almost) identical optimal layouts.
15
Judging Problem 07 Even if the other teams were rather creative. Team 1337 Team A Forever Young
16
Judging Problem 02
17
Teams X3M and Forever Young produced a(n almost identical) list of queuing Ls.
18
Judging Problem 02 Teams Team1337 and Team A were more creative.
19
Judging Problem 02 Teams Farm Squad 4 and HyperDonkeys managed to identify an optimal packing!
20
Judging Problem 10
21
Judging Problem 07 Teams HyperDonkeys, Farm Squad 4 and X3M all produced an optimal layout.
22
Judging Problem 07 Again, the other teams were rather creative. Team 1337 Team A Forever Young
23
But before the results, we will have a short Intermission
24
Sending ITSA Packing
25
Team1337 11x8 X3M 11x5 Team A 8x10 Forever Young 12x5 Farm Squad 4 3x18 HyperDonkeys 7x7
26
And now … the results!
27
Lightning Round 5 participating teams: Farm Squad 4 Forever Young HyperDonkeys Team A Team1337
28
Overall Results: Lightning Problem 1: 1. HyperDonkeys 2. Team A 3. Team1337 4. Forever Young
29
Overall Results: Lightning Problem 2: 1. Farm Squad 4 2. Team A 3. Team1337
30
Overall Results: Lightning Problem 3: 1.Farm Squad 4 2.HyperDonkeys 3.Team A 4.Team1337
31
Overall Results: Lightning Problem 4: 1.Team A 2.HyperDonkeys 3.Team1337 4.Forever Young
32
Overall Results: Lightning Problem 5: 1.Farm Squad 4 2.Team A 3.Team1337
33
Overall Results: Lightning Problem 6: 1.HyperDonkeys 2.Team A 3.Farm Squad 4 4.Team1337
34
Overall Results: Lightning Problem 7: 1.Farm Squad 4, HyperDonkeys 2.Team A 3.Forever Young 4.Team1337
35
Overall Results: Lightning Problem 8: 1.HyperDonkeys 2.Team A 3.Forever Young 4.Team1337
36
Overall Results: Lightning Problem 9: 1.Forever Young, Farm Squad 4, HyperDonkeys 2.Team A 3.Team1337
37
Overall Results: Lightning Problem 10: 1.Farm Squad 4, HyperDonkeys 2.Team A 3.Forever Young 4.Team1337
38
The Ranking
39
Lightning Results 5.Forever Young (130 points)
40
Lightning Results 4.Team1337 (150 points) 5.Forever Young (130 points)
41
Lightning Results 3.Team A (310 points) 4.Team1337 (150 points) 5.Forever Young (130 points)
42
Lightning Results 2.Farm Squad 4 (320 points) 3.Team A (310 points) 4.Team1337 (150 points) 5.Forever Young (130 points)
43
Lightning Results 1.HyperDonkeys (360 points) 2.Farm Squad 4 (320 points) 3.Team A (310 points) 4.Team1337 (150 points) 5.Forever Young (130 points)
44
Standard Submissions 6 participating teams: Farm Squad 4 Forever Young HyperDonkeys Team A Team1337 X3M
45
Overall Results: Standard Problem 1: 1.HyperDonkeys 2.Team A 3.X3M 4.Team1337 5.Forever Young
46
Overall Results: Standard Problem 2: 1. Farm Squad 4, HyperDonkeys 2. Team A 3. X3M 4. Forever Young 5. Team1337
47
Overall Results: Standard Problem 3: 1.HyperDonkeys 2.Team A, X3M 3.Farm Squad 4 4.Forever Young 5.Team1337
48
Overall Results: Standard Problem 4: 1.HyperDonkeys 2.X3M 3.Team A 4.Team1337 5.Forever Young
49
Overall Results: Standard Problem 5: 1.HyperDonkeys 2.X3M 3.Farm Squad 4 4.Team A 5.Forever Young 6.Team1337
50
Overall Results: Standard Problem 6: 1.HyperDonkeys, Team A, X3M 2.Farm Squad 4, Forever Young, Team1337
51
Overall Results: Standard Problem 7: 1.Farm Squad 4, HyperDonkeys, X3M 2.Team 1337 3.Forever Young 4.Team A
52
Overall Results: Standard Problem 8: 1.HyperDonkeys, X3M 2.Team1337 3.Forever Young, Team A
53
Overall Results: Standard Problem 9: 1.Forever Young, Farm Squad 4, HyperDonkeys, X3M 2.Team A 3.Team1337
54
Overall Results: Standard Problem 10: 1.Farm Squad 4, HyperDonkeys, X3M 2.Team A 3.Team1337 4.Forever Young
55
The Ranking
56
Final Results 6.Team1337 (160 points)
57
Final Results 5.Forever Young (165 points) 6.Team1337 (160 points)
58
Final Results 4.Team A (260 points) 5.Forever Young (165 points) 6.Team1337 (160 points)
59
Final Results 3.Farm Squad 4 (270 points) 4.Team A (260 points) 5.Forever Young (165 points) 6.Team1337 (160 points)
60
Final Results 2.X3M (370 points) 3.Farm Squad 4 (270 points) 4.Team A (260 points) 5.Forever Young (165 points) 6.Team1337 (160 points)
61
Final Results 1.HyperDonkeys (500 points) 2.X3M (370 points) 3.Farm Squad 4 (270 points) 4.Team A (260 points) 5.Forever Young (165 points) 6.Team1337 (160 points)
62
Winners First Place – Best Standard Submission (Lm100): HyperDonkeys Second Place – Runner Up Standard Submission (Lm75): X3M Best Lightning Submission (Lm50): HyperDonkeys
63
Prosit tal-programmi!
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.