Monday, March 13, 2017

Game Theory of Military Battle Strategy


http://pre09.deviantart.net/9f60/th/pre/f/2014/342/c/e/cold_steel__defiance___uncle_sam_poster_by_krushvarrok-d8949tw.png

The US Military Needs Your Intellect ⚓

Okay Math 450, today is the day. It is the 1940's and you all have been drafted into the United States military. Your commanding officer knows that you're a smart cookie and wants you to apply game theory to help the Allies become victorious. I am here today to help expedite your understanding of how this can be done. Before I jump into the material, can you brainstorm a couple of theoretical applications in which different war type scenarios can be modeled using game theory? Let me know in the comments section below! 

What's the connection between Game Theory and battle decisions? ðŸ”«


I'm glad you asked! The overarching goal in our decision making process is to select a course of action that yields a successful outcome relative to any decisions made by the Axis powers during an operation. This is a doctrine based on enemy capabilities, according to the doctrine of decision of the armed forces of the United States. This doctrine is conservative in nature, molding a course of action based off of all of the possible choices the enemy is "capable" of making.  In the particular example we are going to use, both “players” are blind to each other’s choices, making this a two-person zero-sum game.  Using this framework, we can create and solve a decision matrix that allows the commander to make the best decision. Does anybody want to take a shot at what I mean when I say two-person zero-sum? Let me know below!... So, what I mean by two-person zero-sum is that, two groups are involved (the Allied 😀 and Axis 😷  powers) and are coupled into a pursuit-evasion game. And in this game, anything that is lost or gained only pertains to the groups playing. For example, if I am playing poker with Mac and he wins, then he gains my poker chips and I lose all of mine. 

Maximizing success and minimize casualties ðŸ’£

Earlier in the year we looked at combinatorial games and if you knew the rules of the game you could put yourself in a P-posistion to eventually win. However, real world applications of game theory are probabilistic in nature. So, you can't always guarantee victory, but you can maximize your chances of success. Let's take a look at a real World War II battle and the decisions that were made. We can then use game theory to evaluate the actual decision that was made by applying a matrix. 

The Rabaul-Lae Convoy Situation ðŸš¢

In February 1943, General Kenney of the Allied Air Force struggled to regain the island of New Guinea. Luckily, some information was leaked about a Japanese convoy assembling at Rabaul and then sailing over to Lau (See Fig. 1). 



General Kenney and his troops estimated that this Japanese convoy would take three days to sail from Rabaul to Lau. The Allied forces wanted to maximize the amount of days they could bomb the Japanese. However, the issue here is that the "evaders" in this case have two possible routes shown above (See Fig. 1). They could sail along the southern route with clear visibility or along the northern route with poor visibility. Being a well educated General who was taught many battle strategies, General Kenney proceeded with his decision using the five-step Estimate of the Situation. This technique is taught at all military institutions for situations exactly like this. We are going to look at Kenney's thought process and then apply game theory to see if he made the proper decision to maximize his chances for success. The five-step Estimate of the Situation is as follows: 1. Mission 2. Situation and course of action 3. Analysis of the opposing courses of action 4. Comparison of available courses of action 5. The decision. Since General Kenney was working with limited time and resources, he had to decide which side of the island he would have the majority of his pilots patrol, while sending one additional aircraft to the opposite side of the island to alert his forces if the Axis fleet had indeed went the other way.

The commanders for the axis fleet believed that it was safest to keep their forces together and had to choose whether to go north through poor visibility or south through the open waters without knowing where Kenney’s forces would be patrolling.

Based on the choices the generals had to make, four possible outcomes exist: Both go North, both go south, the fleet goes north and the bombing force goes south or the fleet goes south, while the bombing forces head north (Fig. 2).



The Allies want to guarantee the maximal amount of bombing, whereas the Axis powers want to minimize the days that they are under fire.

If the Allies concentrated their power on the northern route, the outcomes could be at most two days of bombing. On there other side, if the Allies patrolled the south, the two outcomes could be either one day of bombing or three days of bombing. To make a long story short, General Kenney chose to patrol the Northern route because it would guarantee at least two days of bombing. According the the U.S. doctrine of decision, General Kenney took action to achieve the greatest amount of success while taking in all consideration of the enemies capabilities. 

As for the Japanese, they also chose the northern route because they did not want to take the risk of getting bombed for three full days. The independent decisions of these two commanders lead to the Battle of the Bismarck Sea. Japanese ships were spotted after a day of reconnaissance and were bombed for two days as predicted by the Allies. 

Game theory analysis and matrix ðŸ“ˆ

There exists a way in game theory to analyze situations like the Battle of the Bismarck Sea. The doctrine of the Estimate of the Situation is synonymous with that of von Neumann's solutions of the two-person zero-sum game. Lets apply some numbers to this situation and create a matrix of options that Kenney had to select from and then use game theory to analyze it. 


To solve this "game" we attach a "Maximum of columns" and a "Minimum of row". We can do this because the Japanese select strategies from the columns and Kenney can independently select his strategies from the rows. 

By looking at the minimum value in each row, General Kenney could see the number of days that he could bomb and can make his decision accordingly.  The US military’s conservative approach is highlighted in Kenney’s employing of the “maximin” method of choice; If he went with option two then he could get three days of bombing, however there is also the possibility of only getting one, so he took the safer bet and went with a guaranteed two days of bombing.  

For the Japanese, they wanted to achieve the opposite. Since their decisions come from the columns, they take the maximum of those columns and then select the minimal possible amount of days to potentially be bombed or the "minimax". A military general might not be so quick as to see this fast and easy way to solve his pursuit-evasion "game"! 

Conclusion ðŸ”’

Now as a class, we are all well versed in some battle strategy! Something cool to note in this example is that if there was some sort of secret spy on either side, who could find out the opponents strategy, then his opponent would have not really gained or lost anything from that. This is called a matched strategy or a Nash equilibrium; No player can gain by changing his strategy. In summary, we can now see that there exists a relationship between game theory and the U.S. doctrine of military decision. And we can use this relationship to analyze situations where a commander might attack what he believes is the enemies next move.  


Bibliography

1. Williams, Prof. Brian, and Prof. Emilio Frazzoli. "Principles of Autonomy and Decision Making." MIT OpenCourseWare. Accessed March 13, 2017. https://ocw.mit.edu/courses/aeronautics-and-astronautics/16-410-principles-of-autonomy-and-decision-making-fall-2010/lecture-notes/MIT16_410F10_lec25.pdf.

2. Haywood , O.G., Jr. " MILITARY DECISION AND GAME THEORY." Jstor.org. Accessed March 13, 2017. https://www.jstor.org/stable/pdf/166693.pdf.

Wednesday, March 8, 2017

Finding the Lost Spelunker

Spelunking

Did I mean the game Spelunky?? Unfortunately, I didn’t, but here’s a picture of what the game looks like in case you wanted to see.

Spelunky Screenshot

It’s too bad this isn’t what I’m analyzing because it looks pretty fun and apparently it won PC game of the year in 2013.

Moving on to what I’ll actually be talking about…

Searching for the lost spelunker:

-Some things you need to know-
            -spelunkers are people who explore systems of caves wither on land or underwater
            -We are trying to find an unfortunate spelunker who has become lost in the cave :O
-While attempting to find this spelunker he may be wandering around and not just staying in one place

This is very similar to the cop vs invisible robber that Madison talked about, it’s just that in this case what is the “robber” is not trying to evade, but instead trying to be found. Although this can be used to find an invader as well, which would make it exactly the same as the cop vs invisible robber.

Different Graphs and Their Number of Searchers:
As I was going through the different types of graphs given and the number of searchers correlated with these given graphs I had a realization; all the graphs here have the same number of searchers needed as the number of cops needed in regular cops and robbers!

-Path Graphs-
Can be searched with one searcher

-Cycle Graphs-
Can be searched with two searchers

-Star Graphs-
Can be searched with 2 searchers.

-Complete Graphs-
Can be searched with n searchers where n is the number of vertices.

In these next two methods of searching, the searchers are to search for the spelunker down each corridor, or edge, within the graph. This is assuming that the cave is known and the people have to go down the whole corridor in order to see the spelunker instead of just looking down the corridor and being able to see him. Each searcher is able to move at the same time.

One-tick Searching:
Each searcher is only allowed to move one time. This means that you would need the same number of searchers as there are edges in a graph. This is obviously the fastest way to search a graph since each person moves at once and you will find the spelunker who’s lost on the first move.

Although this is nice and fast it’s not really all that feasible. In the example given in the website I was looking at there was a square graph indicating there were four corridors within the cave and I mean really, how many caves have only four corridors in them? You’d need a whole lot of people all at once and there just aren’t going to be that many.

This brings us to…

Two-tick Searching:
This time, as the name suggests, each searcher is allowed to move at most twice. An example is shown below.



In this example there are only two people needed as opposed to the four that would be needed if we were doing the one-tick searching. This gives the number of moves the spelunker can be found in to be at least two. 

Conclusion: 
Searching for a lost spelunker is very similar to cop vs  the invisible robber and has the same amount of cops, in this case searchers, needed for simple graphs as regular cops and robbers do. These two ways of searching lead to a fast discovery of the spelunker, but aren't all that realistic.

http://mathcentral.uregina.ca/beyond/articles/PIMS/IPSW2009/spelunking/solution.html

Graph Cleaning

Graph Cleaning
Cleaning the graph-

Here are the basics of graph cleaning…

-Initially every edge and vertex of the graph is dirty
-A fixed number of brushes (the things used to clean the graph) start on a set of vertices
-Each brush may move on any dirty edges and may not move on any edges that are already cleaned
-A brush may not move back to a vertex it has already been on
-Vertex v is cleaned once all its incident edges are cleaned
-A graph is cleaned when every vertex has been cleaned
-If every vertex has been cleaned, it follows that every edge has been cleaned

An example of a graph cleaning is shown below:

The two little sunlike shaped things are the brushes and each dotted line represents a cleaned edge, while a solid line represents a dirty edge. As you can see, two brushes are sufficient when cleaning this graph.

Now that we’ve got some of the basics, let’s dig into the math behind how many brushes you need to clean a graph.

Upper Bounds:
First, you’ll need to know that the brush path of a brush b is the path formed by the set of edges cleaned by b and is denoted b(G). Now that we know that, the upper bound of a general graph can be found using theorem 1.

Theorem 1:
for any graph G = (V, E).

The proof for this is long and this isn’t really what I wanted to get to anyways, so I’ll leave it out, but you can find it here if you’d like to read through it.

This theorem leads directly into a corollary which dives into a more specific category of graphs, d-regular graphs. For those of you who haven’t taken graph theory and those of you who may have forgotten, a regular graph is one in which all vertices have the same degree, which is the number of edges connected to that vertex. So a d-regular graph is one in which all vertices have degree d.
Here are a couple examples of d-regular graphs (although in this case r represents the degree and n is the number of vertices):

Image result for d-regular graphs

Corollary 1:
Let G = (V, E) be a d-regular graph on n vertices
If d is even, then   
If d is odd, then         

Now that we have an upper bound for d-regular graphs (yay) let’s look more closely at graphs with specific ds.

Cleaning on 2-regular graphs:
Let’s let Yn be the number of cycles within a 2-regular graph with n vertices.

We can say every cycle needs exactly two brushes. Much like the cop vs robber version of this, each brush can move towards the other until all edges are cleaned which is where the robber would get caught.

Since we know that each cycle needs two brushes we can say that every 2-regular graph needs 2Yn brushes.

Cleaning on 3-regular graphs:
In a 3-regular graph there exists a Hamiltonian cycle, which is another graph theory term. A Hamiltonian cycle is a path of edges that connect to each vertex exactly once. Here’s an example of one:
Image result for 3-regular graph hamiltonian cycle

As you can see all the vertices are hit and it creates a cycle, but not all the edges need to be used or even can all be used in this case.

Due to 3-regular graphs having a Hamiltonian cycle, the number of brush paths on the graph is at least n/2 + 2. This is because one brush will be used for the Hamiltonian cycle, one will be used to complete the cycle, and the other n/2 are used to fill in the edges left out of the cycle.

Cleaning on 4-regular graphs:
A random 4-regular graph can be decomposed into two edge-disjoint Hamilton cycles, and hence four brush paths are made.

Conclusion:
Well now you know how to clean a graph and how many brushes are needed for general and d-regular graphs!




https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwj6_6mdlMbSAhUK5iYKHaGoBNgQjhwIBQ&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHamiltonian_path&psig=AFQjCNF_IcwSZPiaR4CfT3L_5p8G6h4GXQ&ust=1489036675190965

Monday, March 6, 2017

Cop, Robber, and Alarms

Cop, Robber, and Alarms is a game played with one cop and partial information about the location of the robber. In this game, the cop receives partial information from "alarms", which are placed on some of the vertices of the graph. When the robber lands on a vertex with an alarm, the cop learns of the robber’s position. However, the cop does not know which direction the robber goes after leaving an alarmed vertex. We will try to find and characterize the minimum number of alarms required, denoted A(G), to guarantee the capture of the robber on a copwin graph G.


First, we will look at one scheme for placing alarms on vertices of a specific kind of tree: a k-ary tree.
What is a k-ary tree? Read on!

Definitions


The neighborhood of a vertex v in a graph G, denoted N(v), is the set of vertices adjacent to v.
                Example (below): the neighborhood of vertex a, N(a) = {r, b, e}.

A rooted tree is a tree with one vertex r chosen as root.
                The graph below is a rooted tree with vertex r chosen as the root.

For each vertex v, let P(v) be the unique v, r-path.
                Example: P(c) = c, b, a, r

The parent of v is its neighbor on P(v).
                Example: the parent of c is b.

The children of v are its other neighbors.
                Example: c does not have any children because it is a leaf, but the children of b are c and d.  

A full complete k-ary tree is a tree where all vertices except the leaves have exactly k children, and the distance between the root and all leaves is the same.
The graph below is a full complete k-ary tree where k = 2. The distance between the root and each leaf is 3. All vertices except the leaves have two children.

The depth of a full tree is defined to be the distance between the root and all leaves.
                Example: The depth of the tree below is 3.

Alarms on k-ary Trees


Suppose we are given a full complete k-ary tree T. We already know that all trees are copwin. So, here is one scheme for placing alarms on the vertices of a k-ary tree to guaruntee capture of the robber:
·         All leaves remain unalarmed
·         All vertices at distance d ≡ 0 (mod 5) from the leaves receive alarms
·         The vertices in between (vertices at distance d ≡ i (mod 5), i ≠ 1 from the leaves) have exactly one unalarmed child.


By following the scheme laid out above, we can come up with this arrangement of alarms where the alarms are shown as red dots. By following the guidelines above, other alarm arrangements exist but with the same number of alarms. Comment with another arrangement of alarms!

From this, we get the following theorem…

Theorem: Let T be a full complete k-ary tree of depth m. Then...




We can check this theorem for our k-ary tree above by plugging in k = 2, and m = 3. 
We get A(T) ≤ 4

The proof for this can be found here

Several other schemes for copwin graphs have been developed which are different from the scheme for k-ary trees given above.


Alarms on Copwin Graphs


We need some more definitions first…

Copwin Ordering and Copwin Spanning Tree


A finite graph is copwin if and only if it has a copwin ordering. This means that a graph is copwin if and only if it can be reduced to a single vertex, vn, by successively removing corners.


A graph G is dismantlable if there is an ordering (v1, v2, . . . , vn) of the vertices of G such that for each i < n, vi is a corner in the subgraph induced by {vi , vi+1, . . . , vn}. Such an ordering of the vertices is called a copwin ordering.

This is confusing in words but makes more sense with a picture...


Jeliazkova, Diana. 2006. Aspects of the cops and robber game played with incomplete information. Acadia University.

The copwin graph above has a copwin ordering (11, 12, 13, 10, 6, 7, 8, 9, 5, 2, 3, 4, 1). This means we begin eliminating corners with any of the vertices 11, 12, 13, or 10. We now consider the graph without those vertices to the right. We can see that 6, 7, 8, and 9 are all corners so we can remove them as well. We move to the right in the diagram where all vertices except 1 are corners. Hence, we are left with a single vertex. 

A spanning tree constructed from a copwin ordering of G keeps track of the removal of corners. A copwin Spanning Tree, S, is constructed as follows:

Let Gi be the induced subgraph of G, such that Gi = Gi−1 − vi−1, for all i = 2, 3, . . . , n, and G1 = G. In more simple terms, Gi is the graph G after the successive removal of corners {v1, v2, . . . , vi−1}.
For example, from the graph above, G1 is the original graph. G2 = G1 – 11 and G3 = G2 – 12 and so forth where the numbers being subtracted are single vertices.

Let fi : Gi → Gi+1 be the retraction map from Gi to Gi+1, which maps the corner vi onto a vertex that dominates vi in Gi .

Consider a fixed copwin ordering (v1, v2, . . . , vn) of G. The start vertex of the copwin ordering, vn, will be the root of the spanning tree, and for all vertices v1, v2 ∈ V (G), v1v2 ∈ E(S) if and only if fj (v1) = v2 or fj (v2) = v1, for some j.

In our example from the copwin graph above, vn = 1 so 1 will be the root of the spanning tree. Let’s consider the example i = 2. We can see that v2 = 12 from our copwin ordering. So we know that moving from G2 to G3, we took away the vertex labeled 12. So this function tells us to map v2 = 12 onto a vertex that dominates it in G2. We can see that vertex 3 dominates vertex 12 in G2. So, in our copwin spanning tree, there will be an edge between 12 and 3 (below). 
Jeliazkova, Diana. 2006. Aspects of the cops and robber game played with incomplete information. Acadia University.

Now that we have defined a copwin spanning tree, S, let's look at schemes for placing alarms in a copwin graph to guarantee the capture of the robber.

Consider a copwin graph G with a given copwin ordering (x1, x2,. . . xn).


More Definitions!


A vertex x of G is controlled if x remains free, while all neighbors of x are alarmed.

A path P of G is a freepath if all vertices of P are free.

A path P = xi1 , xi2 , . . . , xim of G, where m ≥ 2, is said to be collapsible if P is a path in Sxn and, if xn ∈ V (P), then xn is an endpoint of P.

A freepath P’ of G is isolated if all vertices of P’ are at distance at least three from any unalarmed vertex not in P’.

A collapsible freepath P’’ with vertices xi1 , xi2 , . . . , xim is almost isolated if P’’ is isolated in G − L(xi2 ), where L(xi2) is the set of leaves adjacent to xi2.

Assuming P’’ is an induced subgraph of G, the subgraph induced by V (P’’) ∪ L(xi2 ) is referred to as a free area.

Placing the Minimum Number of Alarms on a Copwin Graph

For a fixed copwin ordering (x1, x2, . . . , xn) of G, define â„µ(Sxn) as the minimum number of vertices with alarms, such that:
  1. Free vertices are either controlled or form collapsible freepaths (or free areas)
  2. Freepaths are induced subgraphs of G
  3. Freepaths are either isolated or almost isolated, and
  4. If an alarmed vertex xi has more than one unalarmed neighbor, then one of the following occcurs:
(a) xi is adjacent to a finite number of unalarmed leaves,
(b) xi lies on a collapsible path with exactly two controlled vertices,
(c) The unalarmed neighbors of xi lie on the same freepath P = xi1 , xi2 , . . . , xim, and i > im
(d) xi has exactly two unalarmed neighbors that lie on the same freepath P.

Define â„µG = minSv {ℵ(Sv)|Sv is a copwin spanning tree of G}.

Theorem: Let G be a finite copwin graph. Then A(G) ≤ â„µG.

This is a bit confusing because you have to look at both the original graph, G, and the copwin spanning tree, S, when placing the alarms. Overall, you want to configure the alarms such that the cop searches free areas and free paths until an alarm is triggered. Then the cop knows which free area the robber is leaving and which free area he is entering.

Conclusion


Like other variants of cops and robbers, Cop, Robber, and Alarms seems to be suited more towards playing on a computer. Cop, Robber, and Alarms can also be played with the alarms on the edges instead of on the vertices. Even further, this variant of Cops and Robbers can be played and analyzed with more than one cop. This idea of a game played with one cop and partial information about the location of the robber has many variations with different amounts and timings of the partial information. For example, in a witness version of the Cops and Robber game, cops have partial information provided via witnesses who report “sightings” of the robber. This is similar to the alarms version but sightings occur at regular intervals. Thus, the cop's strategy is different because she can just sit and wait for the witness to tell her the location of the robber. Overall, with the help of many many definitions of relationships between vertices, we can place the minimum number of alarms on a copwin graph to guarantee capture of the robber. 

Works Cited

Clarke, N. E. (2009). A witness version of the Cops and Robber game. Discrete Mathematics, 3292-3298.

Connon, N. E. (2006). Cops, Robber, and Alarms. Ars Combinatoria -Waterloo then Winnipeg.

Jeliazkova, Diana. 2006. Aspects of the cops and robber game played with incomplete information. Acadia University.

Sunday, March 5, 2017

Cops vs Invisible Robber

Cops vs Invisible Robber is a variation on the normal cops and robber game, but it is played with partial information. In this game, the rules are as follows:
  • The cops and robber take turns moving
  • They can only move to vertices adjacent to their current position
  • The robber knows where the cop is
  • The cop does not know where the robber is

Characterization of Cop Win Graphs

So, in this game, how do we know if a graph is cop-win? We can use the ideas presented in the Hunter vs Mole variation to find out. In Hunter vs Mole, the hunter does not know where the mole is, but the mole knows where he is. Graphs were hunter-win in Hunter vs. Mole, if they were a lobster.

Just a reminder:
A lobster is a tree containing a path P such that all vertices are within distance 2 of P.  

We can use a very similar idea to find that in Cops vs. Invisible Robber:

A graph is cop-win if G is a tree containing a path P such that all vertices are within distance 1 of P.

Let’s take a look at this example:



Just like in Hunter vs. Mole, the cop can catch the robber in this graph in optimal time if he starts on one end of path P.



Remember the robber is trying to avoid capture, so let’s place him at the other end of the path.



However, the cop doesn’t know where he is (since he's invisible), so she’ll have to search every vertex to make sure the robber gets caught. That means she’ll need to visit every branch coming off of the main path, and then come back to path P before continuing on. This game would go like this until the robber was caught.

Round 1:


Round 2:

Round 3:


Round 4:

Round 5:

Round 6:

Round 7:
 

Round 8:



Some of you might be asking why the robber can’t just switch to the other side of the path while the cop is down one of the branches. However, you have to remember that unlike Hunter vs. Mole, the cop and the robber do not move simultaneously.  If the cop were down a branch, and the robber moved to the junction of the path and the branch, then on her next move, the cop would move back to the path and catch the robber.

Initial Situation:



Cop Move:


Robber Move:


Cop Move, on which the robber is caught:




This is why, for any tree graph G with path P such that all vertices are within distance 1 of P, G is cop-win.

What about capture time?

The optimal strategy for the cop, as already discussed, is to start at one end of P, and move her way down the path, stopping at every branch to check if the robber is there. This means that for a cop-win graph of this nature, capt(G) = (n-1) + 2(number of branches), where n is the number of vertices in the path P.

This equation comes from the fact that the cop must traverse each edge on the path P once (n-1 edges), and each branch edge twice (2* number of branches).

What about multiple cops?

What can you say about cop-win graphs with multiple cops? It turns out that we can generalize the definition of a cop-win graph above to find our answer.

Trees containing a path P such that all vertices are within distance k of P, are cop-win with k cops.

So, according to this assumption, how many cops do you need to catch the invisible robber on these graphs? (We’ll try these examples in class)

                         


Further Research:

With the addition of probability, it turns out you can make any connected graph G with an invisible robber cop-win. This is according to the following theorem:

Suppose that c(G) cops perform a random walk on a connected graph G, starting from any initial position, and that the robber is adversarial (wants to avoid capture). Then E(T) < infinity.

Basically, if you have the necessary number of cops to capture the robber (ie it’s a cop-win graph with c(G) cops in normal cops and robbers), then even when you don’t know where the robber is, eventually you can find him if you walk around randomly. I will further explain this with the 3-cycle graph in class.

This lets us know two things about Cops vs. Invisible Robber:
  1. The cop number of a graph is the same in the visible and invisible CR game (but only if you move randomly)
  2. Generally, the capture time of Cops vs. Invisible Robber will be larger than the visible version


Conclusions:

While there is much less known about Cops vs. Invisible Robber, it is clear that certain ideas from other Cops and Robber variations such as Hunter vs. Mole can be helpful in determining information about this variation. Using ideas from Hunter vs. Mole, we found what kinds of graphs are cop-win in Cops vs. Invisible Robber, and we were also able to say something about the cop-number of certain graphs when the robber is invisible. With the introduction of probability, we could show that the cop number of graphs with an invisible robber is the same as the cop number of that graph with a visible robber, even though the expected capture time increases. All in all, even with partial information, there are sometimes ways for the cops to win and capture our invisible robber.

Citations:


Kehagias, Athanasios, Dieter Mitsche, and PaweÅ‚ PraÅ‚at. "Cops and Invisible Robbers: The Cost of Drunkenness." Theoretical Computer Science 481 (2013): 100-20. Web.

Wednesday, March 1, 2017

Hunter V.S. Mole

The Hunter & The Mole

As an alternate version of "Cops and Robbers",  Hunter V.S. Mole involves the Hunter, who acts similarly to the Cop, and the Mole, who acts similarly to the Robber.  However, the rules of the game are tweaked a bit and provide (in my opinion) a much more interesting pursuit.

Let's get it going.



Set Up and Rules

  1. The Hunter:  Not constrained by edges, but is also not able to see where the mole moves.  The Hunter plays in the dark.
  2. The Mole:  Constrained by the edges of the graph and must move (can't stay in one place like the Robber).  The Mole has the advantage of being able to see the Hunter.  
  3. Both players move simultaneously.
  4. A graph where the Hunter wins is called "Hunter-Win".  Similarly, a graph where the Mole can win is called "Mole-Win"

Types of Graphs

So, what types of graphs are Hunter-Win, and what types of graphs are Mole-Win?  Well...lucky for you guys, I am going to tell you :D.  

The Graph we are going to be utilizing to describe Hunter v Mole is called a "Lobster".  I am not sure why these types of graphs are named after a crustacean, but I do know what it means to be a lobster (the graph that is).  

Lobster
A Lobster graph is a tree graph containing 
a path P such that all vertices are within distance 2 of P.


Example:
Here is an example of a Lobster graph taken from Dr. Komarov's presentation in Q-Club 2015.

As you can see, there is a path P that goes from left to right where each vertex is no greater than 2 moves away from P.   There are also a few other important pieces of vocabulary associated with a Lobster graph.


  • A Knee in a Lobster graph is, with respect to P, a non-leaf vertex at distance exactly 1 from P. A knee must also contain feet in order for the edge to be considered a knee.  Therefore we only have 1 knee in the Lobster graph above.
  • A Foot in a Lobster graph is any leaf vertex adjacent to a knee.  There are 3 feet in this graph.
  • A Hip in a Lobster is the vertex where the knee originates from.  There is one hip in this graph.


Theorem: "Lobsters are Hunter-Win"

Ok, so.  I feel it is best I go over this in class as it involves inserting many pictures into this blog post. However, feel free to take a look at the proof here, or on page 3 in this paper.  I have provided a general outline below as this will help when I explain it in class.

  1. Essentially, the proof states that the Mole can either be an odd or even Mole.  This means that the Mole is either an odd number of vertices away from the Hunter or an even number of vertices away from the hunter. 
  2. The hunter starts at one end of the path P, assuming the Mole is either odd or even.  Let's assume the Hunter chooses the Mole to be odd. 
  3. The Hunter then moves across path P one vertex at a time, while the mole moves simultaneously, trying to maximize capture time. 
  4. If the hunter gets to the other side of the graph and finds that he has not captured the Mole yet, then he can deduce that the Mole is actually even, instead of odd. 
  5. Therefore, in optimal play, the Hunter moves back across path P, eventually capturing the Mole.  
  6. The reason this works is because each vertex straying from path P is no more than 2 edges away.  
This might be a bit confusing, but I will go over it in class.  Keep in mind that the Hunter does not know where the Mole is and that the hunter is not constrained by the edges...so the proof is comparable to the process of elimination.  All in all, Lobsters are Hunter-Win.


Mole-Win Graphs

We have seen that Lobsters are Hunter-Win, and to come full circle, I will exemplify that no graphs other than Lobsters can be Hunter-Win.  

Let's just assume these two Lemmas have been proven true, no questions asked.  

Lemma 1
Let H be any mole-win graph. Then any graph G containing H as a subgraph is also mole-win. 

 Lemma 2 
The cycle Cn is mole-win for all n ≥ 3.


These are both very similar to the properties of the Cops and Robbers graphs we learned about last Thursday.  To recall: If there is a cycle Cn with n≥4, stand alone or serving as a subgraph, then the Robber wins.  

So if there is a cycle Cn with n≥3, then it is Mole-Win...as seen in this diagram below.  


The loop to the right of the graph illustrates how the Hunter can move wherever she wants, but since the Mole can move simultaneously with the robber, and also have eyes on her...the Mole wins.  Those "+" signs are indicators of each possible move the mole can make.

Corollary 1
Any graph containing a cycle is mole-win.


This next graph is referred to as the dreaded Three Legged Spider graph!  Not really all that "dreaded", but I had to capitalize on that opportunity.  Anywho... the last graph we looked at was a cycle with n≥3, so we already know that those are Mole-Win.  Now, we are going to look at tree graphs, and if they too can ever be Mole-Win.  (Hint: they can)

Behold...the Three Legged Spider graph.




This graph is, in fact, Mole-Win.   Again, the best way for me to explain this is to go over it in class. However, I will provide a brief scenario to show how it can be Mole-Win.

Scenario:
  1. Let's Assume that the Hunter starts at vertex 0, and that she believes the Mole to choose either a2, b2, or c2 at the start (making it an even Mole).  Therefore, on his next turn, the Mole can move to a1, a3, b1, b3, c1, or c3.
  2. In optimal play, the Hunter would move to any one of a1, a3, b1, b3, c1, or c3.  This is in an attempt to anticipate the Mole's move from a2, b2, or c2.  
  3. Assume the Hunter moves to a1 or to a3. In both cases, the mole will be at one of the vertices 0, a2, b2, c2 on the next turn after that, and we have repeated the position we started with, showing that the hunter cannot guarantee capture of the even Mole by starting at vertex 0.  
This is but one scenario of many with a Three Legged Spider tree, that works towards proving this graph, as a Mole-Win graph.

Here is a nice diagram that illustrates all the possible scenarios, while simultaneously illustrating why it is best for me to go over this in class.


Conclusion


With the Three Legged Spider graph, let's denote it as "S3,3", we can deduce a Lemma, and a Corollary about Mole-Win graphs.

Lemma 3
S3,3 is a Mole-Win Graph

Corollary 2
Any tree containing S3,3 as a subgraph is mole-win.


And, based on Corollary 2 and what we saw about cycle graphs with n≥3, we can now provide a forbidden subgraph characterization of Lobsters.

Lemma 4 
A tree is a lobster if and only if it does not contain S3,3 as a subgraph.

Lemma 5 
A loop-free graph is hunter-win if and only if it is a lobster.


The proofs for all of these and more can be found in this paper.  This blog post is meant to give you guys a solid understanding about the basics of Hunter V.S. Mole, and my presentation in class will go into more depth about optimal strategy for both players.

Please feel free to ask questions or comment below.  See you all in class Thursday.






Work Cited


file:///Users/JackPeacock/Downloads/HunterMolePaper%20(1).pdf