In the daylight of biotechnology:Rcpp and R applications
Scientific tutorials and data application
Monday, May 23, 2016
Algorithm of binary search :Rcpp code
A binary search divides a range of values(sorted array) into halves by the median point(noted k), and continues tonarrow down the field of search until the pattern(noted x) is found. It is the classic example of a "divide and conquer" algorithm.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment