7.2 Grid Perimeter, Shaded Area, Sub-Shape Counting & Shortest Lattice Paths
Key Takeaways
An grid of unit squares is bounded by horizontal lines and vertical lines, containing total rectangles and total squares.
The number of rectangles in an grid that cover a specific marked unit cell at row and column is .
In a triangle divided from apex into base segments and intersected by horizontal lines parallel to the base, the total number of triangles is .
Shaded lattice polygon areas are solved via Bounding-Box Subtraction or Pick's Theorem (), while polyomino perimeters obey .
Shortest paths across an street grid equal , whereas grids with missing road segments or multiple obstacles are solved via Pascal-triangle node addition (Köşe Toplama Yöntemi).
7.2 Grid Perimeter, Shaded Area, Sub-Shape Counting & Shortest Lattice Paths
Visual-quantitative problems on the TR-YÖS bridge geometry and combinatorics. Rather than asking you to count dozens of overlapping shapes or trace paths by hand—which invites double-counting or omission errors under time pressure—these items reward clean structural formulas for sub-shape enumeration, unit-grid area/perimeter, and lattice path routing.
The rectangle and square counts below use sides along the drawn grid lines; tilted squares require a different count.
1. Counting Rectangles, Squares, and Triangles in a Grid (Şekil Sayma)
Rectangles and Squares in an Grid
Consider an grid made of rows and columns of unit squares. Geometrically, this grid is formed by horizontal lines and vertical lines:
- Total Number of Rectangles (Including Squares): Every rectangle is uniquely determined by choosing any of the horizontal lines (top and bottom borders) and any of the vertical lines (left and right borders):
- Total Number of Squares: A square can be placed in vertical positions and horizontal positions. Summing over all possible side lengths gives the countdown product sum:
In the special case of an square grid, this simplifies to the sum of squares:
To find the number of non-square rectangles, compute .
- Rectangles and Squares Containing a Specific Marked Cell :
Suppose the unit cell at row ( from the top) and column ( from the left) contains a star or shaded mark. For a rectangle to enclose cell :
- Its top border must be chosen from the horizontal grid lines on or above row .
- Its bottom border must be chosen from the horizontal grid lines on or below row .
- Its left border must be chosen from the vertical grid lines on or to the left of column .
- Its right border must be chosen from the vertical grid lines on or to the right of column . By the multiplication principle:
If a question asks for squares of side containing , count how many valid windows overlap row and column for each and sum the valid placements.
Counting Triangles in Cevian Fans from Vertex
Suppose interior line segments (cevians) are drawn from apex of down to base , partitioning into elementary base segments:
- Any choice of rays out of the rays emanating from forms a unique triangle with apex : there are such triangles.
- If horizontal lines (including base itself) are drawn parallel to across the fan, each horizontal line acts as an independent base for those apex- triangles:
2. Shaded Grid Area & Polyomino Perimeter (Birim Kareli Zeminde Alan ve Çevre)
Shaded Lattice Polygons: Bounding Box vs. Pick's Theorem
When a tilted triangle or polygon is drawn with vertices on the intersections (lattice points) of a unit-square grid, its side lengths are irrational square roots, so avoid using with tilted bases. Instead, apply one of two exact methods:
- Bounding-Box Subtraction (Çerçeve Alanından Dış Üçgenleri Çıkarma): Enclose the shaded polygon inside the tightest axis-parallel rectangle of area , then subtract the areas of the unshaded right triangles () and corner rectangles around the outside.
- Pick's Theorem (Pick Teoremi): For any simple polygon whose vertices all lie on integer lattice points:
where is the number of lattice points strictly inside the polygon and is the number of lattice points lying on its boundary perimeter. Along a straight segment from to , the number of boundary steps is .
Polyomino Perimeter Formula
When unit squares (each having perimeter ) are glued together edge-to-edge, every shared internal edge eliminates two unit segments ( from each adjacent square) from the exterior boundary:
The shared-edge formula counts every boundary, including hole boundaries. To obtain only the outer perimeter of a shape with holes, subtract the boundary lengths of those holes. Use direct edge counting when a bounding-box shortcut is not justified.
3. Shortest Lattice Paths (En Kısa Yol / Izgara Yolları)
A traveler moving along an rectangular street grid from bottom-left corner to top-right corner takes a shortest path if and only if every step moves strictly East (, ) or North (, ).
- Unrestricted Grid ( steps East, steps North): Every shortest path is a permutation of identical 's and identical 's of total length :
- Mandatory Checkpoint : By the multiplication rule, multiply the paths from to by the paths from to :
- Blocked Intersection or Missing Road Segment — Pascal Node-Labeling (Köşe Toplama Yöntemi):
- If a single intersection is blocked, subtract the forbidden paths: .
- If multiple intersections/edges are missing or the grid is L-shaped/irregular, label the starting corner with , propagate 's along the outer bottom and left boundary edges (up to any break), and fill every interior node recursively using:
setting $P = 0$ at any blocked intersection and omitting the term from any missing road segment.
| Grid / Combinatorial Task | Formula / Rule | Parameter Definitions |
|---|---|---|
| Total Rectangles in Grid | rows, columns of unit squares | |
| Total Squares in Grid | Reduces to when | |
| Rectangles Covering Cell | 1-indexed row and column of the cell | |
| Cevian Fan Triangles | base intervals on ; horizontal lines | |
| Pick's Theorem & Polyomino | ; | interior points, boundary points |
| Shortest Lattice Paths | East steps, North steps |
Worked Examples
Worked Example 7.2.1: Sub-Shape Counting & Marked Cell in a Grid
Problem: A rectangular grid consists of rows and columns of unit squares, with a star () placed inside the unit square at row (from the top) and column (from the left). Determine: (a) the total number of rectangles in the grid, (b) the total number of squares in the grid, and (c) how many rectangles contain the starred cell .
Solution:
- Total Rectangles ():
- Total Squares:
- Rectangles Containing Cell :
- Top border choices: ; Bottom border choices: .
- Left border choices: ; Right border choices: .
Worked Example 7.2.2: Shortest Lattice Paths with Checkpoint and Blocked Node
Problem: On a city street grid ( blocks East, blocks North from corner to corner ), how many shortest paths from to pass through checkpoint without passing through a closed construction intersection at ?
Solution:
- Count shortest paths from to ( East, North):
- Count all shortest paths from to ( East, North):
- Subtract paths from to that hit blocked node :
- From to is East, North: paths.
- From to is East, North: paths.
- Forbidden paths from to via : .
- Valid paths from to avoiding : .
- Multiply stages and :
Review the Method
Shortest paths across an street grid equal , whereas grids with missing road segments or multiple obstacles are solved via Pascal-triangle node addition (Köşe Toplama Yöntemi).
In a rectangular grid of unit squares ( rows and columns), how many rectangles can be formed that are NOT squares?
In , interior line segments are drawn from apex to base , and additional horizontal line segments are drawn parallel to across the entire triangle (creating horizontal base lines in total, including ). How many triangles are in the figure?
On a unit-square coordinate grid, the vertices of a shaded triangle lie at , , and . What is the area of ?
A flat polyomino figure is constructed by gluing identical unit squares (each of side length ) edge-to-edge such that there are exactly shared internal unit edges between adjacent squares. Assume the connected figure has no holes. What is its outer perimeter?
Sections you finish are checked off in the contents.