Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
You are given a collection of n bolts of different widths and n corresponding nuts. you are allowed to try a nut and bolt together, from which you can determine whether the nut is larger than the bolt
You are given a collection of n bolts of different widths and n corresponding nuts. you are allowed to try a nut and bolt together, from which you can determine whether the nut is larger than the bolt, smaller than the bolt, or matches the bolt exactly. however, there is no way to compare two nuts together or two bolts together. the problem is to match each bolt to its nut. design an algorithm for this problem with average-case efficiency in (n log n).