Skyscraping Notation Glossary
Walkthrough Foreword Primer Terminology The Game Plan Clueless
Techniques Guesswork, I’m Guessing? Skylining Pencilmarks Haven Couples Pinpoint Firing Range Recursion & Abstraction
Cases Silhouette Stairs Lighthouse Blockade Meet in the Middle Leap of Faith Slide Hideout High-Rise Middle Ground Higher-Rise Successor Outflanked
Showerthoughts The Discrete Difficulty of Size Satisfaction Imagination vs Guesswork Mistakes Nontriviality
Solutions 6x6: Hyperthetical 6x6: The Power of Sudoku 5x5: A Curious Crossways
Info Synopsis FAQ decoded Licence

Case: Slide

Dense sequences

Examples · Explanation

In a half-lane with clue ccc, if the lane peak is in the ccc-th cell, then all skyscrapers in the half-lane must be visible (forming a dense sequence).

c12…c-1N
cpq…tN

Where p<q<...<t<Np < q < ... < t < Np<q<...<t<N.

Examples

Case 1

35

This is a 5x5 puzzle, so the lane peak is the 555-skyscraper. It’s in the 3rd cell, which is the same number as the clue, so the case applies.

3lowhigh5

The lowest-case sequence we could have is (125)(125)(125), and the highest-case is (345)(345)(345). Hence the candidates for the head cell are {123}\{123\}{123} and for the second cell {234}\{234\}{234}.

31232345

Remember there is hidden structure in these candidates, which you might convey on paper by drawing <\lt< in the edge between them.

Case 2

54

Here the lane peak is 4 cells away from the 444-clue, so the case applies.

The lowest sequence we could have is (1235)(1235)(1235), and the highest (2345)(2345)(2345). So for the head cell, we have {12}\{12\}{12}; then {23}\{23\}{23} for the next, and so on.

53423124

Case 3

3
4

Now we have a 6x6 skyscraper so the lane peak is the 666-skyscraper. Notice we can pinpoint a lane peak by Meet in the Middle since 3+4=6+13 + 4 = 6 + 13+4=6+1.

3
6
4

This is 3 cells away from the 333 clue, and 4 cells away from the 4 cells away from the 444 clue, so the case applies on both sides.

3
p < q
q < 6
6
z < 6
y < z
x < y
4

On the 333-clue side the lowest sequence is (126)(126)(126) and the highest (456)(456)(456), giving {1234}\{1234\}{1234} and {2345}\{2345\}{2345} for the candidates.

3
1234
2345
6
z < 6
y < z
x < y
4

On the 444-clue side we have (1236)(1236)(1236) up to (3456)(3456)(3456), giving {123}\{123\}{123}, {234}\{234\}{234} and {345}\{345\}{345}.

3
1234
2345
6
345
234
123
4

Explanation

The Structure

When the lane peak is in the ccc-th cell of a half-lane, then the greatest possible number of visible skyscrapers is ccc. For instance, if it were in the tail cell of a 6x6 puzzle, i.e. the 5th cell…

6

…then we could have a maximum of 5 skyscrapers visible, by having a sequence of skyscrapers with none obscured:

12346

Of course, this isn’t the only such sequence. We could very well have had (12356)(12356)(12356), (23456)(23456)(23456), etc. to achieve 5 visible skyscrapers.

If the clue were, say, 333, then we’d need to choose which cells contain visible skyscrapers, and there are many different ways of doing that.1

3  6

We could have the first 2 cells visible in addition to the lane peak…

3  6

…or maybe have the 2 cells next to lane peak visible. There are many choices!

But if the clue were 555, then the only way to have 5 skyscrapers visible is if every cell is visible.

5    6

The lane peak is guaranteed to be visible, so we need 4 more visible to make up the required 5. There are only 4 cells between the clue and lane peak – so they must all be visible!

When the lane peak is further away, we have a choice between the gaps. But when it’s in the ccc-th cell (as close as it can be), it leaves no wiggle room, so we have only 1 choice.

The Numbers

The structure that ensures all cells are visible is a dense sequence – a chain of skyscrapers where each is taller than the last. For instance, | 1 2 3 4 5\text{| 1 2 3 4 5}| 1 2 3 4 5 is a sequence, since 1<2<3<4<51 < 2 < 3 < 4 < 51<2<3<4<5. All of these skyscrapers would be visible in the half-lane.

However, while we do have only 1 possible structure (all visible), there’s more than 1 sequence that could satisfy that structure. We can’t say for certain which one it is, so we can only pencilmark.

For instance, if we need 2 visible skyscrapers…

25

…then we could have (15)(15)(15), (25)(25)(25), (35)(35)(35), or (45)(45)(45). That’s a lot of options!

212345

Let’s compare this to a sequence of 4 visible skyscrapers:

45

Well, one sequence we could choose is (1235)(1235)(1235). But there’s nothing guaranteeing that – we could also have (1245)(1245)(1245). Or (1345)(1345)(1345). Or (2345)(2345)(2345).

Focusing on the head cell, in all of the possible sequences it’s either 111 or 222. This makes sense because if it were 333, the longest sequence we could have is (345)(345)(345), which only has 3 skyscrapers, not 4 as the clue requires.

4125

For the next cell, it’s 222 and 333. It needs to definitely be taller than 111, and it can’t be 444, since then we would only be able to see a maximum of 3 skyscrapers.

412235

Continuing with the same logic, for the last cell we have 333 and 444.

41223345

In general, to find the candidates for each cell, we only need to consider the lower and upper bounding sequences. The lower bound is the sequence containing the shortest possible skyscrapers, and the upper bound contains the tallest possible skyscrapers. From there we know our candidates are all the skyscrapers between the lower and upper bound (inclusive).

46.

For the lower bound, we start with the shortest possible skyscraper, 111, and then keep picking the shortest available skyscraper. That gives (1236)(1236)(1236).

41236.

For the upper bound, we can work backwards. Preceding the 666, the tallest possible skyscraper is 555, and then we keep picking the tallest available skyscraper. That gives 6,5,4,36, 5, 4, 36,5,4,3, so we have the sequence (3456)(3456)(3456).

41324356.

Finally, we just need to add in all the intermediate values. For example, in first cell the range is [1,3][1, 3][1,3], which gives {123}\{123\}{123}.

41232343456.

Solving

As we obtain information on the sequence, we can leverage its structure to actually solve some of these cells.

Forcing the Rest

The head cell acts as a ‘lower bound’ on the sequence, dictating where it starts from. If it starts from the tallest candidate, then every cell afterwards must also have their tallest candidates!

41223345

Suppose here we manage to find that the head cell is 222, which is the tallest of {12}\{12\}{12}.

4223345

Then the only possible sequence collapses to (2345)(2345)(2345), so we can solve the half-lane!

42345

We could also achieve this via Sudoku-style eliminations!

This doesn’t just apply for the head cell, though. At any point, if a cell is solved to be its tallest candidate, then all following cells must also contain their tallest candidate.

5122334456
512334456

333 is the tallest of {23}\{23\}{23}, so…

5123456

…all following cells must contain their tallest candidate. This is also deducable via Sudoku-style deductions.

On the flip side, if a cell is solved to be its shortest candidate, then all preceding cells must also contain their shortest candidate!

5122334456
512233456

333 is the shortest of {34}\{34\}{34}, so…

5123456

…all preceding cells must contain their shortest candidate. Again, this is deducable through Sudoku-style deductions.

All make sense? It’s important to not lose sight of it in larger puzzles when cells start to have more candidates. For instance:

41232343456.

Let’s say we find that the middle unsolved cell is 444.

412343456.

Purely relying on Sudoku-style eliminations, we’d leave the last unsolved cell as [35][35][35].

41234356.

But we can actually solve it, because there’s the sequence structure! Since every cell must be visible, we know it can’t be a 333 since that’d be obscured. It must be a 555.

4123456

This is why it’s important to remember these pencilmarks aren’t just plain pencilmarks, they also encode the sequence structure. When I look at them, I don’t actually think about the individual numbers, I just think “This is a sequence” – i.e. each skyscraper needs to be taller than the one before it.

Narrowing the Band

Viewing the sequence as a chain of bands


  1. Specifically, 4C2^{4}C_{2}4C2​ different choices of visible cells. (The lane peak is always visible so must be included in the choice, which is why it’s not 5C3^{5}C_{3}5C3​.)↩

View on GitHub

Skyscraping by Sup#2.0

CC BY-SA 4.0