• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:31
CET 23:31
KST 07:31
  • 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
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy5ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises0Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool42Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
What mix of new & old maps do you want in the next ladder pool? (SC2) Weekly Cups (March 16-22): herO doubles, Cure surprises Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Potential Updates Coming to the SC2 CN Server Weekly Cups (March 2-8): ByuN overcomes PvT block
Tourneys
World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
Soulkey's decision to leave C9 BGH Auto Balance -> http://bghmmr.eu/ JaeDong's form before ASL [ASL21] Ro24 Preview Pt1: New Chaos ASL21 General Discussion
Tourneys
[Megathread] Daily Proleagues ASL Season 21 LIVESTREAM with English Commentary [ASL21] Ro24 Group A [BSL22] Open Qualifiers & Ladder Tours
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
U4GM Tips Counter Enemy Gadgets Fast in Black Ops rsvsr How to Keep Reward Chains Rolling in Monopol u4gm What to Do First in MLB The Show 26 Spring
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1725 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
Canada4216 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
Next event in 11h 30m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft129
elazer 118
SteadfastSC 87
Codebar 16
CosmosSc2 7
StarCraft: Brood War
Artosis 357
LancerX 23
Dota 2
monkeys_forever267
LuMiX1
Counter-Strike
fl0m4477
Super Smash Bros
AZ_Axe12
Liquid`Ken6
PPMD0
Heroes of the Storm
Liquid`Hasu395
Other Games
summit1g5461
Grubby3697
shahzam454
C9.Mang0153
ZombieGrub135
ToD92
Trikslyr61
UpATreeSC33
JuggernautJason10
deth6
Organizations
Dota 2
PGL Dota 2 - Main Stream29
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Hupsaiya 172
• davetesta25
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Eskiya23 27
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• imaqtpie1191
Upcoming Events
Sparkling Tuna Cup
11h 30m
Afreeca Starleague
11h 30m
Soulkey vs Ample
JyJ vs sSak
Replay Cast
1d 10h
Afreeca Starleague
1d 11h
hero vs YSC
Larva vs Shine
Kung Fu Cup
1d 12h
Replay Cast
2 days
KCM Race Survival
2 days
The PondCast
2 days
WardiTV Team League
2 days
Replay Cast
3 days
[ Show More ]
WardiTV Team League
3 days
RSL Revival
4 days
Cure vs Zoun
herO vs Rogue
WardiTV Team League
4 days
Platinum Heroes Events
4 days
BSL
4 days
RSL Revival
5 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
5 days
BSL
5 days
Replay Cast
6 days
Afreeca Starleague
6 days
Light vs Calm
Royal vs Mind
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

Proleague 2026-03-22
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
Proleague 2026-03-23
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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.