你能告诉我用C#进行二进制搜索吗? [英] Can you tell me binary search in c#?
本文介绍了你能告诉我用C#进行二进制搜索吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您能告诉我用C#进行二进制搜索吗?
感谢您的回答
Can you tell me binary search in c#?
thanks for answers
推荐答案
参阅:
http://www.dotnetperls.com/array-binarysearch [ http://www.dotnetperls.com/binarysearch [ http://www.dreamincode.net/code/snippet1835.htm [ http://www.devasp.net/net/articles/display/442.html [ ^ ]
希望对您有帮助
refer :
http://www.dotnetperls.com/array-binarysearch[^]
http://www.dotnetperls.com/binarysearch[^]
http://www.dreamincode.net/code/snippet1835.htm[^]
http://www.devasp.net/net/articles/display/442.html[^]
hope this helps
HI,
一篇发表在CodeProject上的好文章-一个简单的二进制搜索树,用C# [ ^ ]
但是有一种预定义的方法,称为 List< t> .BinarySearch() [ ^ ] ...它会搜索整个排序后的List< t> ;使用默认比较器获取元素,并返回该元素的从零开始的索引.
A good article posted in CodeProject - A simple Binary Search Tree written in C#[^]
But there is a predefined method called List<t>.BinarySearch()[^]... which searches the entire sorted List<t> for an element using the default comparer and returns the zero-based index of the element.
这篇关于你能告诉我用C#进行二进制搜索吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文