Difference between revisions of "Dynamic Clustering"

From Robowiki
Jump to navigation Jump to search
m (Add link)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
The earliest method doing this was by iterating through the log and calculating the distance for each log entry.  If you have a large log this is very slow. More recently [[kd-tree]]s have been used. [[User:Corbos|Corbos]] was the first one to mention them on the [[RoboWiki]], which caught the interest of [[User:Chase-san|Chase-san]] and [[User:Simonton|Simonton]].
 
The earliest method doing this was by iterating through the log and calculating the distance for each log entry.  If you have a large log this is very slow. More recently [[kd-tree]]s have been used. [[User:Corbos|Corbos]] was the first one to mention them on the [[RoboWiki]], which caught the interest of [[User:Chase-san|Chase-san]] and [[User:Simonton|Simonton]].
 
   
 
   
=== Bot using this technique ===
+
=== Bots using this technique ===
 
* [[Tron]] & [[Shadow]]: First two bots using this technique. This technique used to be called "[[TronsGun|Trons Gun]]", but later it was renamed.
 
* [[Tron]] & [[Shadow]]: First two bots using this technique. This technique used to be called "[[TronsGun|Trons Gun]]", but later it was renamed.
 
* [[Chalk]]: First dynamic clustering bot that was released with [[Open Source|source code]].
 
* [[Chalk]]: First dynamic clustering bot that was released with [[Open Source|source code]].
Line 14: Line 14:
 
* [[Horizon]] & [[RougeDC]] & [[YersiniaPestis]]: Newer dynamic clustering bots.
 
* [[Horizon]] & [[RougeDC]] & [[YersiniaPestis]]: Newer dynamic clustering bots.
 
* [[X2]] & [[Ali]] & [[DrussGT]]: These bots use Dynamic Clustering only for their gun.
 
* [[X2]] & [[Ali]] & [[DrussGT]]: These bots use Dynamic Clustering only for their gun.
 +
* Mini: [[CunobelinDC]], [[Foilist]]
 +
* Micro: [[MagicD3]], [[FoilistMicro]]
  
 
== See Also ==
 
== See Also ==
Line 19: Line 21:
 
* [[Visit Count Stats]]
 
* [[Visit Count Stats]]
 
* [[kd-tree]]
 
* [[kd-tree]]
 +
* [[TronsGun]] — the initial form of dynamic clustering
  
 
[[Category:Log-Based Algorithms]]
 
[[Category:Log-Based Algorithms]]

Latest revision as of 16:24, 6 April 2024

Wikipedia
Youtube
Youtube has a video of Dynamic Clustering in action: click here to watch

Dynamic clustering is a technique to find entries in your log similar to the current situation. Essentially, it is a K-nearest neighbor algorithm, and not actually clustering at all. Despite this misnomer, the term "Dynamic Clustering" has stuck with the Robocode community.

The idea is to record a "state" (or termed "situation") for each entry in your log. The state can contain any data that you deem valuable, such as lateral velocity, advancing velocity, or enemy distance. Save this along with your data. Then to use the data, you find a "distance" between current state and past states. Distance can be Euclidian (<math>\sqrt{(dist1 - dist2)^2 + (lat1 - lat2)^2 + \cdots}</math>) or another way, such as Manhattan distance (<math>|dist1 - dist2| + |lat1 - lat2| + \cdots</math>). Find some number of entries with the lowest distance, and use them for targeting, movement, or whatever you like.

The earliest method doing this was by iterating through the log and calculating the distance for each log entry. If you have a large log this is very slow. More recently kd-trees have been used. Corbos was the first one to mention them on the RoboWiki, which caught the interest of Chase-san and Simonton.

Bots using this technique

See Also