









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










(source prefix, destination prefix, action) (01, 110, drop packet)
source
dest 8 15
24
27
Image region is divided into cells called pixels. Each pixel is either black ( 0 , background) or white ( 1 ).
1 1 1 1 1 1 1 1 1 1 1
1 1
Remaining entries are 0.
Rotate 90 degrees clockwise.
Θ(n^2 ) space. Θ(n^2 ) time for rotation, scaling, union, intersection, and so on.
NW
SW SE
NE
NW
SW SE
NE
NW NE
SW NW
NW NE
SW NW
= 2 white pixels in 21 x 2^1 window => white pixel. NW
SW SE
NE
= 2 white pixels in 21 x 2^1 window => white pixel. NW
SW SE
NE
= 2 white pixels in 21 x 2^1 window => white pixel. NW
SW SE
NE
white pixel. NW= 2 white pixels in 21 x 2^1 window =>
SW SE
NE
A B
A B