courses:hcai:lab_search

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
courses:hcai:lab_search [2026/09/29 17:39] – [Before the lab] kktcourses:hcai:lab_search [2026/09/29 21:27] (current) – [Challenge] kkt
Line 23: Line 23:
 ==== Challenge ==== ==== Challenge ====
  
-Work in groups of **2–4** on [[https://www.codingame.com/training/medium/death-first-search-episode-1|Death First Search - Episode 1]].+Work in groups of **2–4** to protect a network in [[https://www.codingame.com/training/medium/death-first-search-episode-1|Death First Search - Episode 1]].
  
-Your program must represent a changing network as a graph and remove one edge in each turn to prevent the moving agent from reaching a gateway.+An agent is moving through the network towards one of several gateways. In each turn, your program must remove one connection to stop the agent from escaping.
  
-Start by implementing a valid baseline strategy. Then improve it using BFS or another suitable graph-search algorithm. Pay particular attention to: +Begin with a simple working strategy. Then make it smarter: Which gateway poses the greatest immediate risk? Which path is the agent likely to follow? Should you cut the final connection to a gateway or intervene earlier? Can a locally sensible decision create a worse situation in the next turn?
-  - representing and updating the graph; +
-  - selecting a gateway or path to defend; +
-  - choosing which edge to remove; +
-  - identifying situations in which a locally reasonable strategy may fail.+
  
-The challenge is intended to be started during the lab and completed as part of the **self-study regarding classes**.+Use graph search to guide these decisions, and consider situations in which a simple greedy strategy may fail.
  
-Groups that complete Episode 1 may continue with [[https://www.codingame.com/training/hard/death-first-search-episode-2|Death First Search — Episode 2]]. Selected groups may briefly present their strategies and results at the beginning of the next lab. Particularly effective solutions may receive bonus points.+Start the challenge during the lab and continue it as part of the **self-study regarding classes**. 
 +Groups that complete Episode 1 may continue with [[https://www.codingame.com/training/hard/death-first-search-episode-2|Death First Search — Episode 2]]. 
 +Selected groups may share their strategies at the next lab, and effective solutions may receive bonus points.
  
 ==== Learn more! ==== ==== Learn more! ====
  • courses/hcai/lab_search.txt
  • Last modified: 5 days ago
  • by kkt