Question: Problem #1(20 points) Programming Uniform Universes In 2030, humans have a marvelous progress in exploring the universe. They get shock when they realize that there

 Problem #1(20 points) Programming Uniform Universes In 2030, humans have a
marvelous progress in exploring the universe. They get shock when they realize

Problem #1(20 points) Programming Uniform Universes In 2030, humans have a marvelous progress in exploring the universe. They get shock when they realize that there is not only one universe in which the earth is. The fact is that there are many universes outside and our universe is not alone!!The interesting thing is all universes contain the same number of planets with different sizes and planets of a universe is fixedly numbered from 1 to n. Two universes A and B are uniform if their arrays of planet-sizes (a, , ??, ??, , an) and (b1, b2,b3, , bn), respectively, satisfy the following rules: - If ai aj then bi aj then b > b vi,j Example: - Given two universes A and B with two arrays of planet-sizes (1,3,2) and (12,50,31), respectively. Universe A and B are uniform because a1-1 a3 = 2 and b.-50 > b3 = 31 - Given two universes A and B with two arrays of planet-sizes (1,3,2) and (12,50,10), respectively. Universe A and B are not uniform because a1-1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!