Counting Non-degenerate rectangles Discrete Math. How many non-degenerate rectangles are there of the form (a <= x <= b) and (c <= y <= d) where a,b,c and d are integers between (and including) 0 and 99?

Nadia Smith

Nadia Smith

Answered question

2022-09-04

Counting Non-degenerate rectangles Discrete Math
How many non-degenerate rectangles are there of the form ( a x b ) and ( c y d ) where a,b,c and d are integers between (and including) 0 and 99?
Note: A rectangle is degenerate if it has zero area, e.g. ( 0 x 1 ) and ( 0 y 0 ).
i. Find a formula that's simple but possibly over-counts some rectangles or counts degenerates.
ii. Remove the over-counts from the original formula.
iii. Remove the degenerates from what remains.
iv. Check your formula for a,b,c,d between 0 to 3 by drawing a picture and counting by hand.
Attempt at Solution
There are 100 possible values for x and y, so there are 100 100 = 10 , 000 rectangles total. I'm not sure how to remove degenerates. It would probably be something like subtracting a combination of all degenerate pairs, pairs that contain x 1 or y 0.

Answer & Explanation

enreciarpv

enreciarpv

Beginner2022-09-05Added 18 answers

Step 1
Imagine the checkered large square [ 0 , 99 ] × [ 0 , 99 ], and draw an arbitrary nondegenerate subrectangle R bounded by grid lines. What choices have you made?
Step 2
Note that you were able to choose the horizontal and the vertical bounding lines of R independently.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?