50% 局, a) The following array of integers are to be sorted into ascending order 4 2. 10 8 6 12 If selection sort is chos
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
50% 局, a) The following array of integers are to be sorted into ascending order 4 2. 10 8 6 12 If selection sort is chos
50% 局, a) The following array of integers are to be sorted into ascending order 4 2. 10 8 6 12 If selection sort is chosen to sort this array, write the contents of the array each time that the sort algorithm changes it. How many 7 comparison operations and how many swaps are performed in the sorting? Major Topic ELEMENTARY SORTING Blooms Designation CR Score 8 b) It is suspected that out of a set of 64 50p coins one of the coins is fake (ie, lighter in weight than a genuine coin). With one weighing scale i. give a detailed explanation on how you would go about determining the fake coin ii. What is the minimum number of times you need to use the scales to weigh the coins before identifying the fake coin? Major Topic BINARY SEARCH Blooms Designation CR Score 7 c) Write a recursive method that returns the value of NI (N factonal). Explain why you would not normally use recursion to solve this problem Maior Tonir Blonins Designation Score