Neeldhara
  • About
  • Research
    • Overview
    • People
    • Publications
    • Surveys
  • Teaching
    • Courses
    • Materials
  • Lists
    • Puzzles
    • Bookmarks
  • Exposition
    • Talks
    • Videos
  • Events
  • Blog

Lighting Up a Grid

graphs
Published

March 11, 2021

This puzzle was sourced from an @algopuzzles tweet.

Here’s the puzzle:

Here’s an argument for the lower bound by Harshil Mittal.

Consider an arbitrary but fixed solution. Let ppp denote the number of nodes that are lit up at time 000. Let TTT denote the time taken to lit the entire grid. WLOG, assume that for each 1≤t≤T1 \leq t \leq T1≤t≤T, exactly one new node is lit up at time ttt.

At any time 0≤t≤T0 \leq t \leq T0≤t≤T,

  • For every lit node (i,j)(i,j)(i,j), let f(i,j,t)f(i,j,t)f(i,j,t) denote the number of edges of the node (i,j)(i,j)(i,j) that are not shared with another lit node.

  • Let g(t)g(t)g(t) denote the sum of f(i,j,t)f(i,j,t)f(i,j,t) over all lit nodes (i,j)(i,j)(i,j)

We show that g(t+1)≤g(t)g(t+1) \leq g(t)g(t+1)≤g(t) for all 0≤t≤T−10 \leq t \leq T-10≤t≤T−1.

Let 0≤t≤T−10 \leq t \leq T-10≤t≤T−1. Let (u,v)(u,v)(u,v) denote the new node which is lit up at time t+1t+1t+1. Let XXX denote the set of all lit neighbors of (u,v)(u,v)(u,v) at time ttt. For every node (i,j)(i,j)(i,j) in XXX, we have f(i,j,t+1)=f(i,j,t)−1f(i,j,t+1) = f(i,j,t) - 1f(i,j,t+1)=f(i,j,t)−1. Also, note that f(u,v,t+1)=4−∣X∣f(u,v,t+1) = 4-|X|f(u,v,t+1)=4−∣X∣. Therefore, g(t+1)=g(t)−∣X∣+(4−∣X∣)=g(t)+4−2∣X∣g(t+1) = g(t) - |X| + (4-|X|) = g(t) + 4-2|X|g(t+1)=g(t)−∣X∣+(4−∣X∣)=g(t)+4−2∣X∣. So, as ∣X∣≥2|X| \geq 2∣X∣≥2, we get g(t+1)≤g(t)g(t+1) \leq g(t)g(t+1)≤g(t).

Now, we have 4n=g(T)≤g(0)≤4p4n = g(T) \leq g(0) \leq 4p4n=g(T)≤g(0)≤4p. Thus, n≤pn \leq pn≤p, as desired.


© 2022 • Neeldhara Misra • Credits •

 

Corrections? Please leave a comment here or a PR in this repository, thanks!

I’d rather be a failure at something I love than a success at something I hate.

George Burns

You live and you learn — at any rate, you live.

Douglas Adams

A problem worthy of attack proves its worth by fighting back.

Paul Erdos

×