1. Design a randomized algorithm to find the i-th smallest element in a given array of length \( n \). The expected running time of your algorithm should be \( O(n) \). (15分)
1. Design a randomized algorithm to find the i-th smallest element in a given array of length \( n \). The expected running time of your algorithm should be \( O(n) \). (15分)