Reference no: EM131398034 
                                                                               
                                       
Question 1. Let a[0..n-1] be an array of n distinct integers. A pair (a[i], a[j]) is said to be an inversion if these numbers are out of order, i.e., i<j but a[i] > a[j].
For example: if array a contains the following numbers: 
 9, 8, 4, 5
then the number of inversions is 5.  
(inversions are 9 > 8, 9 > 4, 9 > 5, 8 > 4, 8 > 5)
Write a program that uses the divide-and-conquer techniqueto count the number of inversion in the array.
Question 2. Given two sets of nunique integers A and B, determine if A is equal to B, i.e., all the elements of A are in B. Write a program that uses a transform-and-conqueralgorithm with efficiency class Θ(nlogn) to solve this problem.
Example #1:    Enter the number of integers in the sets:  4
 Enter the first set:  9 5 3 2
 Enter the second set: 3 2 9 5
 These two sets are equal.
Example #2:    Enter the number of integers in the sets:  6
 Enter the first set:  1 4 3 2 8 6
 Enter the second set: 1 3 9 4 6 8 
 These two sets are not equal. 
Please note that a program using a brute-force algorithm with efficiency class Θ(n2) will NOT be marked.
                                       
                                     
                                    
	
		| 
                                   
                                    
                                        
                                           What do the four parts of the christian biblical narrative
                                        : What do the four parts of the Christian Biblical Narrative (i.e.,  creation, fall, redemption, and restoration) say about the nature of God  and of reality in relation to the reality of sickness and disease? From  where would one find comfort and hop.. 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           What are the disadvantages of cloud computing
                                        : What business benefits do cloud computing\ services provide? What problems do they solve? 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           Did lees surrender at appomattox magnanimity to the defeated
                                        : Based on the evidence presented in this chapter, did Lee's surrender at  Appomattox and Grant's magnanimity to the defeated forces save the  nation from a drawn-out guerrilla war, as some historians have argued?  Or, as other scholars have suggested,.. 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           What are the five principles of fair information practices
                                        : What are the five principles of Fair Information Practices? For each  principle, describe a business situation in which the principle comes  into play and how you think managers should react. 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           Program that uses the divide-and-conquer technique
                                        : Write a program that uses the divide-and-conquer technique to count the number of inversion in the array and Write a program that uses a transform-and-conqueralgorithm with efficiency class Θ(nlogn) to solve this problem. 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           Left ventricle to the arcuate artery
                                        : Using a textbook as necessary, list the major arteries through these pathways in a human: a. Blood as it travels from the left ventricle to the arcuate artery. 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           In what way or ways did the shift to agriculture lead
                                        : In what way or ways did the shift to agriculture lead to a fundamental  change in either relationships among humans (i.e., social complexity) or  humanity's position via-a-vie the natural world. This could be in a  positive or negative way (or both). 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           Evaluate their effectiveness with respect to certain areas
                                        : Describe  specific experimentation and observational methods that could be used  within your discipline to gather data. Include your rationale. Evaluate their effectiveness with respect to certain areas within your discipline. 
                                          
                                  
                                     | 
	
		| 
                                   
                                    
                                        
                                           Eight-ounce glasses of lemonade
                                        : How many kcalories are in 4 eight-ounce glasses of lemonade? What would you recommend that she drink instead? 
                                          
                                  
                                     |