• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:49
CET 17:49
KST 01:49
  • 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
Clem wins HomeStory Cup 282HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5
Community News
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win2RSL Season 4 announced for March-April7Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8
StarCraft 2
General
HomeStory Cup 28 - Info & Preview Clem wins HomeStory Cup 28 Stellar Fest "01" Jersey Charity Auction StarCraft 2 Not at the Esports World Cup 2026 Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win
Tourneys
HomeStory Cup 28 RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) StarCraft Evolution League (SC Evo Biweekly) $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)
Strategy
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 511 Temple of Rebirth The PondCast: SC2 News & Results Mutation # 510 Safety Violation Mutation # 509 Doomsday Report
Brood War
General
Can someone share very abbreviated BW cliffnotes? 2024 BoxeR's birthday message Liquipedia.net NEEDS editors for Brood War BSL Season 21 - Complete Results Bleak Future After Failed ProGaming Career
Tourneys
Small VOD Thread 2.0 Escore Tournament StarCraft Season 1 KCM Race Survival 2026 Season 1 The Casual Games of the Week Thread
Strategy
Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Battle Aces/David Kim RTS Megathread Nintendo Switch Thread EVE Corporation Path of Exile Mobile Legends: Bang Bang
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
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Quickbooks Payroll Service Official Guide Quickbooks Customer Service Official Guide
TL Community
The Automated Ban List
Blogs
Play, Watch, Drink: Esports …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1053 users

Math in Starcraft pt.1 - Page 2

Blogs > ShinyGerbil
Post a Reply
Prev 1 2 All
OpticalShot
Profile Blog Joined October 2009
Canada6330 Posts
Last Edited: 2010-01-10 21:42:13
January 10 2010 21:41 GMT
#21
Wow I love this blog. 5/5

I like the experimentation by d3_crescentia, suits perfectly to my engineering mind, haha.
Maybe someone should try the thing with zealots, yes, more protoss love please~
[TLMS] REBOOT
ShinyGerbil
Profile Blog Joined June 2008
Canada519 Posts
January 10 2010 22:38 GMT
#22
Thanks for the feedback, everyone! I really appreciate all the comments and suggestions. Specifically StRyKeR, it makes perfect sense to use a floor or ceiling function to make steps. However, as said before, making differential relationships between functions like that is terribly difficult (and at the very least super messy).

@ d3_crescentia, wow it's awesome that you went though all the trouble to get those results. I think it's really cool to have an experimental aspect to these ideas, to compliment the theory. Many thanks!
[s]savior[/s] jaedong fighting! // member of LighT eSports
d3_crescentia
Profile Blog Joined May 2009
United States4054 Posts
Last Edited: 2010-01-11 07:53:53
January 11 2010 07:42 GMT
#23
FINAL UPDATE:

I ended up taking data for 13v12 and some other instances. Have some graphs:

[image loading]


A short explanation: since it's difficult to evenly spawn the two symmetric parallel lines of zerglings since one is odd and the other is even, the 13th zergling was added to either the top or the bottom of the line. I tried these instances with both Linear2 and 3 line separation distances (refer to my earlier attempts for a better idea). Looking at the graph of Linear3.1 specifically it's here where we start to realize that 100 trials is definitely not enough to give us accurate data. Still, it seems to suggest a peak at either 4 or 5, which is close, given the imperfect nature of the experiment.

[image loading]


To see if anything interesting would happen, I added the results from Linear2.1 and 2.2, and 3.1 and 3.2 together and plotted them, though this would compound the experimental error significantly if I was doing this seriously (for that matter, if I was doing this seriously, I wouldn't be using Excel). Again, suggestion of a peak at 4-5, but we need more trials to be accurate.

[image loading]


Lastly, some other trials for people that are interested. These are runs of 101 trials of Linear2 setup (with the exception of 18v15) - enough to suggest peaks, but we're starting to get to the point where 100 trials is not enough. We have a predicted peak for 17v15 at 8 and an actual at 9-10. For 20v16, this is simply a multiple of 10v8, which should give a peak at 12, but more trials are necessary to see if it does indeed occur there. It could also be that the mathematical model fails at larger numbers of zerglings for whatever reason.

*The run of 18v15 was entirely a mistake - I set my triggers to spawn an extra zergling in the 17v15 run. By the time I had noticed, it was already >70% completed. Truth be told, this data doesn't look too bad, as the peak should be at about 10 (root(99) to be exact), but again - more trials to be sure.

+ Show Spoiler [Speculation] +
Discounting the points at zero, it seems that the distribution climbs more gradually before the peak and falls more steeply after the peak. Having been trained as a physicist, I've only encountered such a graph once before. If we reverse the x-axis and define it in terms of zerglings lost for player 1 (with the surviving zerglings simply being added to the 'lost' count), then we can get something that looks like:

[image loading]

The Maxwell-Boltzmann distribution for particle speeds in gases. Of course, more trials may end up telling us that this is not entirely the case, and I can't discount the fact that I'm just pulling things out of my ass right now. But, if there's a connection between the two (as unlikely as it is), I'll see if I can't find it.


I also tried experimenting with different concave formations in the 10v8 scenario to see if the 8 could win, but none of them turned out very well.

Some conclusions/possible improvements:
- Probably a good mathematical model for 1-2 control groups of lings under ideal circumstances.
- The next possible avenues of inquiry involve different zergling formations (clumps, perpendicular lines, concave) or with larger groups of lings and more trials.
- Zergling AI, while not as bad as Dragoon AI, can still be pretty bad.
- Possible UMS improvement - having an internal counter of each trial, as I double-checked the leaderboard after every engagement (not difficult, just tedious). This is rather difficult/boring with StarEdit alone, but I don't think it will be too much better with SCMDraft.

This was a lot of fun - I miss doing scientific-ish things, so it was refreshing and entertaining to do it for SC. It was also nice to work on a UMS map again, especially since I have a tendency to set projects too big for me to finish quickly. If you come up with other things to experiment, let me know and I'll see if I can give it a shot testing it.
once, not long ago, there was a moon here
figq
Profile Blog Joined May 2010
12519 Posts
May 31 2010 21:34 GMT
#24
Thank you for this thread, and I hope you continue with deeper math analysis of Starcraft. For example, it's interesting to investigate how acceleration affects gameplay with various speed caps.
On January 10 2010 20:22 ShinyGerbil wrote:So as we can see, if an army of ‘a’ Zerglings engages an army of ‘b’ Zerglings with a>b, the remaining number is speculated at sqrt(a^2-b^2), which I found very interesting because it maps out the sides of a right angled triangle (Pythagorean Triples). Some interesting applications include:
5 vs 4, 3 survive
13 vs 12, 5 survive
17 vs 15, 8 survive
Indeed, due to fragmentation of armies most calculations are based on L2-normed space (or Pythagorean metric), adjusted to include standard deviation, due to non-deterministic randomness. The volatility factor is quite high, so this makes the outcomes of most evenly matched battles fairly unpredictable. Therefore, people shouldn't be too quick to conclude anything from the outcome of a Starcraft battle.
If you stand next to my head, you can hear the ocean. - Day[9]
G3CKO
Profile Blog Joined March 2009
Canada1430 Posts
May 31 2010 21:38 GMT
#25
You probably have to get into difeq
┌⋉⊳∀⊲) ☆ If your soul has not truly given up, then you can hear the sound that races through the end of the world.
Garrl
Profile Blog Joined February 2010
Scotland1975 Posts
Last Edited: 2010-05-31 22:14:03
May 31 2010 22:12 GMT
#26
Hmm, it'd be interesting to put together a BWAPI "perfect micro" bot to see exactly what the results are, although it'd be pretty difficult - what do we consider "perfect" to be

If anyone can give me a clear rules of what perfect micro is, I could try it (and probably fail, but that's besides the point).
Impervious
Profile Blog Joined March 2009
Canada4214 Posts
June 01 2010 01:09 GMT
#27
My thoughts on perfect micro.
+ Show Spoiler +
For individual controls, I'd guess that they should retreat before dying (with 1 hit left on them, waiting for their health to return), as well as retreat from 1v1 battles where they will lose (ie, they have less health than the enemy unit). They should run from 2(+)v1 battles (unless they will win them), and attempt to engage in 2(+)v1 battles (unless they will take any casualties). Target priority should go to the enemy units with the least health left. Attempt to prevent overkill somehow as well.....

After that, you'll have to incorporate multi-unit positioning into it, to form concaves, and trap running enemies. That will be much, much trickier.....

And then, there are times where taking some damage gets multiple units into better positions, allowing the combined group to do much more damage than if the individual followed the set rules..... There will also be times where one needs to retreat, to give another room to retreat to prevent it from dying..... this part will be next to impossible to code, if not impossible.....

Of course, if you were to do this with the group with less lings, and have normal micro on the group with more, I would fully expect them to win without taking any casualties (assuming a large space to work with, and more than 1 ling is involved for them).....

If it was done right, I doubt Jaedong could win with 2X the lings..... It might be powerful enough that it could eventually defeat hundreds of lings under his control with only 2 under perfect micro.
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
illu
Profile Blog Joined December 2008
Canada2531 Posts
June 01 2010 01:26 GMT
#28
let this guy go to berkeley...
:]
Megaman703
Profile Blog Joined September 2009
Canada688 Posts
June 01 2010 01:59 GMT
#29
the US has stolen enough of our doctors, scientists and engineers, they don't need to steal our SC players, thank you very much.
Exteray
Profile Blog Joined June 2007
United States1094 Posts
June 01 2010 02:38 GMT
#30
x_0
nosliw
Profile Blog Joined December 2008
United States2716 Posts
June 01 2010 03:57 GMT
#31
looking forward to part 2
Ivs
Profile Joined January 2008
Australia139 Posts
June 01 2010 04:36 GMT
#32
It is possible to derive the same thing without actually solving the differential equations. Basically you want to show F^2-G^2 is invariant. Differentiating
2F.F' - 2G.G'=2F.(-kG) - 2G.(-kF) = 0
gives you that F^2-G^2 is constant and the rest follows.
illu
Profile Blog Joined December 2008
Canada2531 Posts
June 01 2010 04:53 GMT
#33
On June 01 2010 10:59 Megaman703 wrote:
the US has stolen enough of our doctors, scientists and engineers, they don't need to steal our SC players, thank you very much.


We steal those from Third World countries...
:]
]343[
Profile Blog Joined May 2008
United States10328 Posts
June 01 2010 11:52 GMT
#34
oh rofl my roommate and I did a math modeling project on this like last november, and then a bunch of people modeled these small unit battles for our modeling with differential equations class just yesterday... let's see if we can obtain copies of those to put up here ;o
Writer
meeple
Profile Blog Joined April 2009
Canada10211 Posts
Last Edited: 2010-07-09 13:07:22
June 01 2010 17:21 GMT
#35
On June 01 2010 10:26 illu wrote:
let this guy go to berkeley...


Edit: I was mistaken...

Also... I love this theoretical gaming stuff. I was working with my game theory prof to do some simplistic starcraft analogies a little while ago.
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
WardiTV Invitational
12:00
Playoffs
Classic vs CureLIVE!
MaxPax vs TBD
WardiTV1388
IndyStarCraft 281
Rex125
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 281
Rex 125
BRAT_OK 49
StarCraft: Brood War
Britney 40743
Sea 2578
Bisu 2294
Rain 1511
Shuttle 842
Jaedong 829
Hyuk 632
Larva 625
Soma 452
Stork 408
[ Show more ]
Soulkey 220
firebathero 164
Rush 153
actioN 140
Mini 135
Dewaltoss 126
Snow 64
Sharp 60
Hyun 59
Backho 51
Aegong 41
NotJumperer 40
sorry 39
Mind 37
zelot 30
JYJ 27
sSak 24
910 21
Yoon 20
GoRush 18
IntoTheRainbow 16
Free 15
Terrorterran 10
Dota 2
singsing2944
qojqva2191
Dendi618
XcaliburYe76
Counter-Strike
fl0m1354
byalli387
oskar139
Super Smash Bros
Mew2King253
Heroes of the Storm
Khaldor229
MindelVK20
Other Games
FrodaN1240
B2W.Neo1231
hiko828
DeMusliM437
ceh9324
crisheroes212
Trikslyr46
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix10
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• TFBlade1828
• Stunt701
• Shiphtur226
Upcoming Events
Replay Cast
7h 11m
RongYI Cup
1d 18h
herO vs Maru
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
4 days
Sparkling Tuna Cup
4 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-02-04
HSC XXVIII
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Rongyi Cup S3
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W7
Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
LiuLi Cup: 2025 Grand Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
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 © 2026 TLnet. All Rights Reserved.