• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 01:27
CET 07:27
KST 15:27
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners4Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!25$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
Starcraft, SC2, HoTS, WC3, returning to Blizzcon! TL.net Map Contest #21: Winners RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond) $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
[BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review Practice Partners (Official) [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1507 users

Fun Math Problem

Blogs > EtherealDeath
Post a Reply
1 2 Next All
EtherealDeath
Profile Blog Joined July 2007
United States8366 Posts
Last Edited: 2009-08-27 04:08:26
August 27 2009 02:46 GMT
#1
Yea... not sure of the solution to this.

We have a bounded interval, say [a,b]. The values of a and b are not particularly important. Let's say we are using [0,1000].

Within this bounded interval are some set number of other bounded intervals, which may or may not intersect with other bounded intervals. For example, one possible set of intervals is {[1,100],[2,36],[45,798]}.

From each bounded interval (not counting [0,1000]), you must pick exactly one point so that the least distance between two points is maximized.

What alogorithm would solve this?

EDIT: Attempt at clarification.

Basically he nth triangular number is the number of possible point pairs, each of which has a corresponding distance. For example, say we had [0,1] and [988,1000]. Then we would pick the points 0 and 1000, yielding a distance of 1000, because that choice of points means that the distance between the two closest points is maximized. We could have choise 1 and 988, but the distance would be decreased, so it's not the optimum choice.

Another way of putting it is that you want to choose the points so that the two closest ones are as far apart as possible.

*
Saracen
Profile Blog Joined December 2007
United States5139 Posts
August 27 2009 02:52 GMT
#2
That's not fun at all!
Crunchums
Profile Blog Joined December 2008
United States11144 Posts
August 27 2009 02:52 GMT
#3
I do not understand your english
brood war for life, brood war forever
prOxi.swAMi
Profile Blog Joined November 2004
Australia3091 Posts
August 27 2009 03:04 GMT
#4
You need to articulate this more clearly
Oh no
thoraxe
Profile Blog Joined March 2007
United States1449 Posts
August 27 2009 03:05 GMT
#5
Plz don't tell me this is 9th grade kiddie Math for you Chinese people?
Obama singing "Kick Ass" Song: http://www.youtube.com/watch?v=yghFBt-fXmw&feature=player_embedde
illu
Profile Blog Joined December 2008
Canada2531 Posts
Last Edited: 2009-08-27 03:32:31
August 27 2009 03:32 GMT
#6
I am not sure if it is even a math problem, since the word "algorithm" is used. Other than that, I do not understand the problem.

Might as well type it in Chinese. =P
:]
blue_arrow
Profile Blog Joined July 2008
1971 Posts
August 27 2009 03:33 GMT
#7
On August 27 2009 12:05 thoraxe wrote:
Plz don't tell me this is 9th grade kiddie Math for you Chinese people?


8th grade
| MLIA | the weather sucks dick here
Maero
Profile Joined December 2007
349 Posts
August 27 2009 03:35 GMT
#8
just take the average? (e.g. (b+a)/2)

i probably don't understand the problem though, like everyone else
MamiyaOtaru
Profile Blog Joined September 2008
United States1687 Posts
August 27 2009 03:40 GMT
#9
He must think homework is fun
Leg[end]
Profile Blog Joined May 2009
United States241 Posts
August 27 2009 04:02 GMT
#10
On August 27 2009 11:46 EtherealDeath wrote:
Yea... not sure of the solution to this.

We have a bounded interval, say [a,b]. The values of a and b are not particularly important. Let's say we are using [0,1000].

Within this bounded interval are some number of other bounded intervals, which may or may not intersect with other bounded intervals.

From each bounded interval (not counting [0,1000]), you must pick one point from each bounded interval so that the least distance between two points is maximized.

What alogorithm would solve this?


The contrast between this thread's topic and its actual contents is staggering oo;
Legends Never Die ;;
EtherealDeath
Profile Blog Joined July 2007
United States8366 Posts
August 27 2009 04:06 GMT
#11
attempted to clarify.
EtherealDeath
Profile Blog Joined July 2007
United States8366 Posts
August 27 2009 04:07 GMT
#12
On August 27 2009 12:35 Maero wrote:
just take the average? (e.g. (b+a)/2)

i probably don't understand the problem though, like everyone else



That I know is definitely not the solution. Among other things the taking of the average makes no sense in that you would be picking one point, but there could many many different intervals, which would mean more than one point.
brian
Profile Blog Joined August 2004
United States9629 Posts
August 27 2009 04:28 GMT
#13
shouldnt it always be b-a? assuming we have infinitely many intervals.
Severedevil
Profile Blog Joined April 2009
United States4839 Posts
August 27 2009 04:32 GMT
#14
Well, there's an obvious crappy algorithm.

It's easy to check whether you can pick points such that each pair is separated by a minimum distance of d. So you can do a binary search on d, and continue until you're as close to the exact answer as you're asked to get.

I'm looking for a better solution, but that will work.
My strategy is to fork people.
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2009-08-27 04:53:20
August 27 2009 04:49 GMT
#15
I do not know (or believe) that there is a terribly simple formula for the answer.

If I just had to write a computer program to find an exact answer, I would proceed inductively. Suppose that there are n intervals, and that I have a computer program that can find the answer given n-1 intervals.

The computer program (call it P) that solves for n-1 intervals would receive input of the form [a_1,b_1],[a_2,b_2],...,[a_{n-1},b_{n-1}] where the a_i are inputted in nondecreasing order.

Furthermore, suppose the computer program P would give me my answer as a function of a_1, assuming a_1 <= a_2 and that the other a_i and b_i are fixed. The function would be piecewise linear and therefore easy to express.

I claim that, given P, it is easy to construct a similar program which works with an input of n intervals. The new program Q would insert a test value of a_1. Then it would run P on [a_2,b_2],...,[a_n,b_n], spitting out a function of a_2. It would compute the value of a_2 such that the maximum minimum distance spit out by that function is as close to |a_1-a_2| as possible, thus solving the problem for the test value of a_1. Through judicious choices of test values of a_1, the full function of a_1 could be discovered. This is because Q knows the answer it should spit out is a piecewise linear function of a_1 with the number of distinct linear components a bounded function of n.
starleague.mit.edu
EtherealDeath
Profile Blog Joined July 2007
United States8366 Posts
August 27 2009 05:25 GMT
#16
On August 27 2009 13:49 Muirhead wrote:
I do not know (or believe) that there is a terribly simple formula for the answer.

If I just had to write a computer program to find an exact answer, I would proceed inductively. Suppose that there are n intervals, and that I have a computer program that can find the answer given n-1 intervals.

The computer program (call it P) that solves for n-1 intervals would receive input of the form [a_1,b_1],[a_2,b_2],...,[a_{n-1},b_{n-1}] where the a_i are inputted in nondecreasing order.

Furthermore, suppose the computer program P would give me my answer as a function of a_1, assuming a_1 <= a_2 and that the other a_i and b_i are fixed. The function would be piecewise linear and therefore easy to express.

I claim that, given P, it is easy to construct a similar program which works with an input of n intervals. The new program Q would insert a test value of a_1. Then it would run P on [a_2,b_2],...,[a_n,b_n], spitting out a function of a_2. It would compute the value of a_2 such that the maximum minimum distance spit out by that function is as close to |a_1-a_2| as possible, thus solving the problem for the test value of a_1. Through judicious choices of test values of a_1, the full function of a_1 could be discovered. This is because Q knows the answer it should spit out is a piecewise linear function of a_1 with the number of distinct linear components a bounded function of n.


Hm... I'm afraid I don't quite see the applicability of recursion on this problem. It seems that considering a_1 would not only change a_2 but also a_3, a_4,... which makes you recalculate everything, as the new minimum might not be between a_1 and a_2 but rather a_k and a_(k+t) for some k.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2009-08-27 07:18:37
August 27 2009 07:18 GMT
#17
用中文说吧,我翻译
send me a pm to remind me to translate it.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
SiegeTanksandBlueGoo
Profile Blog Joined December 2007
China685 Posts
August 27 2009 07:26 GMT
#18
This is sort of like Euler's method in calculus, except you're trying to find a specific number instead of the slope....

Then again, the slope is a specific number so maybe you can think about using that.
What does the scouter say about his macro level? It's Over 9000 minerals!
Muirhead
Profile Blog Joined October 2007
United States556 Posts
August 27 2009 09:56 GMT
#19
My argument definitely works. I know a lot of people on this site spurt nonsense solutions to these kinds of questions, but I do actually have a math/IMO background . It's a little complicated, but if you think about it you'll understand it. I am well aware that changing a_1 can change every other a_i.

Alternatively, note that my argument proves that the coordinates of the solution points are rational linear combinations of the coordinates of the endpoints. Furthermore, the argument provides natural bounds on the denominators of the coefficients. Thus, we only need to check a finite number of d as in severedevil's argument.
starleague.mit.edu
ninjafetus
Profile Joined December 2008
United States231 Posts
August 27 2009 12:52 GMT
#20
Restating the problem more clearly for anyone still confused.

You are given an closed interval [a,b], and some number of closed subintervals S_i = [a_i, b_i].
For each S_i, choose a c_i contained in [a_i, b_i] such that min_{i,j} (c_i, c_j) is maximized.

Wait, that might not be any more clear at all, save for math people who already get it...

In other words, each subinterval gets a point. Choose the points so that the distance between the two closest points is maximized over all possible choices of points.
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 5h 33m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 163
ProTech121
StarCraft: Brood War
Calm 11099
Zeus 720
TY 264
PianO 224
Leta 215
EffOrt 203
Tasteless 136
soO 23
Bale 17
Icarus 8
League of Legends
JimRising 622
Counter-Strike
fl0m478
taco 59
Other Games
summit1g13283
tarik_tv10901
WinterStarcraft429
C9.Mang0262
goatrope130
NeuroSwarm89
ViBE79
NotJumperer6
Organizations
Other Games
gamesdonequick846
Counter-Strike
PGL158
StarCraft: Brood War
UltimateBattle 36
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Scarra1217
• Jankos880
• Stunt497
Upcoming Events
OSC
5h 33m
LAN Event
8h 33m
Korean StarCraft League
20h 33m
CranKy Ducklings
1d 3h
LAN Event
1d 8h
IPSL
1d 11h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 13h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 16h
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
[ Show More ]
LAN Event
2 days
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
3 days
Wardi Open
3 days
WardiTV Korean Royale
4 days
Replay Cast
5 days
Kung Fu Cup
5 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
6 days
RSL Revival
6 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.