Correct and detailed answer will upvoted else downvoted.   You have gotten information from a Bubble bot. You realize your assignment is to make plant offices, however before you even beginning, you need to realize how huge the production line is and the number of rooms it has. At the point when you check out the information you see that you have the elements of the development, which is fit as a fiddle: N x M.  Then, at that point, in the

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Correct and detailed answer will upvoted else downvoted.

 

You have gotten information from a Bubble bot. You realize your assignment is to make plant offices, however before you even beginning, you need to realize how huge the production line is and the number of rooms it has. At the point when you check out the information you see that you have the elements of the development, which is fit as a fiddle: N x M. 

Then, at that point, in the following N lines you have M numbers. These numbers address processing plant tiles and they can go from 0 to 15. Every one of these numbers ought to be examined its paired structure. Since from each number you know on which side the tile has dividers. For instance number 10 in it's twofold structure is 1010, which implies that it has a divider from the North side, it doesn't have a divider from the East, it has a divider on the South side and it doesn't have a divider on the West side. So it goes North, East, South, West. It is ensured that the development consistently has dividers on it's edges. The input will be right. 

Your assignment is to print the size of the rooms from greatest to littlest. 

Input : The primary line has two numbers which are N and M, the size of the development. Both are integers: n (1≤n≤103) m (1≤m≤103) Next N x M numbers address each tile of development. 

Output :When you wrap up preparing the information your output comprises of one line arranged from greatest to littlest room sizes.

Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education