Download presentation

Presentation is loading. Please wait.

Published byDenisse Teeling Modified over 2 years ago

1
ACM ICPC 2008 Aizu Yoshihisa Nitta （ Chief Judge) Tsuda College

2
Problem Set NoTitleDomainLevel AGrey AreaSpecification1 BExpected AllowanceSpecification1 CStopped WatchesCombination2 DDigits on the FloorGraph2.5 ESpherical MirrorsGeometry2.5 FTraveling CubeRoute search3 GSearch for Concatenated StringsString Match3.5 HTop SpinningGeometry & Simulation4 ICommon PolynomialFormula manipulation4 JZigzagGeometry4

3
Plan to prepare problems Each team will solve at least one problem. Each problem will be solved by at least one team. No team will solve all the problems.

4
Problem A: Grey Area Estimate ink consumption for printing histogram Each bar is drawn monotonically Darkness of each bar is decreased from left to right Correct team34 Submit48 Histogram

5
A: How to Solve 2 pass processing required Count up and Classify Number of Categories are determined Estimate ink consumption Bar’s darkness

6
A: Example CategoryQuantityDarkness 0-951.0 10-1930.66667 20-2910.33333 30-3910.0 1 2 3 4 5 16 17 18 29 30 Data Interval=10 Table of Frequency Distribution Histogram

7
Problem B: Expected Allowance Count up occurrence of each sum of pips of n dice. Pip of dice is between 1 and m Calculate Correct team32 Submit35

8
B: Count up occurrence

9
B: Count up Occurrence Sum0123456789101112 Occurrence 1000000000000 Sum0123456789101112 Occurrence 0111111000000 1st die:pim= 123456 0 die 1 die

10
B: Count up Occurrence Sum0123456789101112 Occurrence 0111111000000 1st die 1 die Sum0123456789101112 Occurrence 0000000000000 2nd die:init 2 dice Sum0123456789101112 Occurrence 0011111100000 2nd die:pip=1

11
B: Count up Occurrence Sum0123456789101112 Occurrence 0111111000000 1st die 2nd die:pip<=1 Sum0123456789101112 Occurrence 0011111100000 1 die 2 dice Sum0123456789101112 Occurrence 0012222220000 2nd die:pip=2

12
B: Count up Occurrence Sum0123456789101112 Occurrence 0111111000000 1st die 2nd die:pip<=2 1 die 2 dice Sum0123456789101112 Occurrence 0012222220000 Sum0123456789101112 Occurrence 0012333331000 2nd die:pip=3

13
Problem C: Stopped Watches Search the appropriate interpretation of watches. Correct team20 Submit23

14
C:Relations between h and m

15
C: Search Space Permutations of (s,t,u) equals 3! = 6 For each permutation of (s,t,u), (h,m,second) is assigned and checked. for given h and m, only 12 ways of i between 0 and 59 satisfies ways interpretation (for each clock)

16
ClockTime1Time2Time3…Time72 Clock1 Clock2 … Clockn C: search earliest clock ≦ disaster time ≦ latest clock Suppose ClockTime1Time3…Time72 Clock1 Clock2 … Clockn Suppose min...... max Time span

17
C: time span table ClockTime1Time2Time3…Time72 Clock1Span 1,1 Span 1,2 Span 1,3 Span 1,72 Clock2Span 2,1 Span 2,2 Span 2,3 Span 2,72 … ClocknSpan n,72 earliest clock ≦ disaster time ≦ latest clock Time span Minimum value of time span table indicates the answer. Select Minimum Shortest

18
Problem D: Digits on the floor Recognize numbers with line segments. Correct team9 Submit20

19
D: How to recognize Figure [1]4154355354 [2]4266566465 [3]0001101021 [1] Number of lines [2] Number of points [3] Number of points on mid-Line

20
D: How to distinguish 2 and 5 a b Cross product of vector a and b b a a×b < 0a×b > 0

21
D: Judge Data

27
E: Spherical Mirrors Ray tracing Easy problem in the geometry domain Answer the last mirrored point Correct team10 Submit12

28
E: reflection

29
cos θ

30
E: Intersection of Line and Sphere Line l: Sphere u: Intersection: This quadratic equation for t can be solved easily.

31
E: select appropriate t Minimal Positive t means the reflection point.

32
Problem F: Traveling Cube Colored cube rolls on square tiles. On colored tiles, the top face of cube should be colored the same. Cube must visit the colored tile in the specified order. Correct team14 Submit18

33
F: Cube on a Square Tessellation 1 # 23 54 6

34
F: Search Space State of dice: top color 6, north color 4 Size of tiles: w*d Number of targets: 6 Node of the graph: 6 * 4 * w * d * 6 Search the graph with Dijkstra

35
G: Search of Concatenated String Search concatenation of all patterns. Correct team9 Submit55 aa b ccc aabccczbaacccbaazaabbcccaa Concatenation of all patterns aabccc aacccb baaccc bcccaa cccaab cccbaa

36
G: Wrong Answer (naive algorithm) aabccczbaacccbaazaabbcccaa aacccb baaccc bcccaa cccaab cccbaa aabccc aacccb baaccc bcccaa cccbaa text aabccc Concatenated pattern

37
G: Wrong Answer Complexity: n! × Text length 12! × 5000 = 2395008000000 Too Large to Solve aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…a text patterns a, a, a, a, a, a, a, a, a, a, a, b Example of judge data:

38
G: Acceptable Algorithm Text P1P1 P2P2 P3P3 P 1, P 3 P 2, P 3 P 3 P1P2P1P2 For each point of target string, remember the matched pattern sequence.

39
G: To express matched patterns For n patterns, n bits are needed to express which patterns are matched. 000000000000000000000001 ・・・ 111111111111 patterns To express these bits pattern simultaneously, 4096 bits needed. 1001000000000000000000000……………………………………………………………………………0 P1P1 P2P2 P 12 O(2 n ×Text length) of memory needed.

40
H: Top Spinning Find the center of a top to make it spin well. Determine whether the center of a top is on the part of the cardboard cut out. Correct team0 Submit1

41
H. Top Spinning

42
Approximation of a Cicular Segment by a Series of Line Segments As the accuracy requirement is not so severe, it might be a good idea to approximate it might be a good idea to approximate circular segments by a series of line segments circular segments by a series of line segments

43
Computing the Barycenter Triangulation The area can be partitioned into triangles. The center of mass can be computed based on areas and mass centers of these triangles.

44
Computing the Barycenter Positive and Negative Integration Another possible way is to intepret the pa ｔｈ as a graph and compute the integral of the graph. When a segment goes leftwords, the area can be considered negative.

45
Telling Whether the Barycenter is Inside the Area or Not Summing up angles of the barycenter and two ends of segments is 2π iff it is inside. But approximating an arc with a single line segment may lead to a wrong decision!

46
Telling Whether the Barycenter is Inside the Area or Not Whether the number of crosses with a ray starting from the barycenter is even/odd can tell outside/inside. Here too, approximating an arc with a line seg. is dangerous!

47
Telling Whether the Barycenter is Inside the Area or Not Direction of the path segment closest to the barycenter can tell whether or not it is inside the area.

48
Judge Data

51
I: Common Polynomial a ÷ b … c Correct team2 Submit2 b ÷ c … d e ÷ f … 0 dividend divisorremainder GCM … To calculate GCM, the previous divisor be the dividend, the previous remainder be the divisor. When remainder is 0, then the divisor is GCM.

52
I: Common Polynomial x 2 +10x+25 x 2 +6x+5 x 2 +10x+25 …[1] …[2] [1]-[2] x 2 +6x+5 - 4x+20 …[3] [2]-[3]×x x+5 x 2 +6x+5 - x 2 +5x x+5 …[4] x+5 [3]-[4] x+5 - 0 Common Polynomial Subtract less degree polynomial from greater degree polynomial after making highest degree’s coefficients to the same.

53
J: Zigzag Correct team0 Submit00 Generate all the lines which pass through two or more points. Find all the intersections of lines. P1P1 P2P2 I1I1 I2I2

54
J: Zigzag Generate all the line segments between each pair of (P i,P j ),(P i,I j ),(I i,I j ) which pass at least two points. For each points P i, suppose it as a start point, and search with Dijkstra. P1P1 P2P2 I1I1 I2I2

Similar presentations

Presentation is loading. Please wait....

OK

Check it out! 1 1.2.2: Standard Normal Calculations.

Check it out! 1 1.2.2: Standard Normal Calculations.

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google