The thing is, there is two arrays,
A []={32503316 91309 02301 35293 89286 64279 59272 73266 05259 56253 25247 11241 13235 32229 66224 15218 79213 57208 50203 55198 74194 06189 50185 06180 73176 52172 42168 42164 53160 74157 04153 45149 94146 52143 19139 95139 79133 71130 70127 77124 92};//this is from big to small arrangement, must be five digits
[b]={,1.5,0.5 0, 1, 2, 3,,2.5, 3,3.5, 4,4.5, 5 ", 6,6.5, 7,7.5, 8,8.5, 9,9.5,10.5 10, 11,11.5, 12,12.5,13.5 13, 14,14.5, 16,16.5, 17,17.5, 18,18.5, 19,19.5, 20};//this is since the childhood, necessarily decimal
A and b in the array of the elements in an array element is as much, and have a one-to-one relationship between
My purpose is that the search for an efficient search method, find a any one I want to find the element in the array, which concluded that the label in this element in the array,
Then with this label, read out the elements in the array b, which is to enter a I want to find the elements in the array, a show with its corresponding array element, b
Help the younger brother! Thank you very much!
CodePudding user response:
Sorted by using the binary search method,CodePudding user response:
As such, a direct comparison is finished,CodePudding user response:
A few things, also suffering the building, a couple of days directly from this game got , lest suffer...CodePudding user response:
Someone could reply, really let me happy for a long time, thank you, I have done, in fact I was a fix, just need to do some control panel, if successful, it must be very cool! C language and single-chip computer really good fun!