Jump to content

Binary Search Multi-Demensional Arrays


Recommended Posts

I am using the FileInfo[] array class and i need to sort the array and binary search it

here is my code

FileInfo[] destinationinfo = new DirectoryInfo(destination).GetFiles();

FileInfo[] sourceInfo = new DirectoryInfo(source).GetFiles();

Please notice i am trimming the array and only getting the dimensions of GetFiles

I need to sort and search by the Name Property.

Can you guys post me code on how to do that?

Link to comment
Share on other sites


Binary search should be fairly easy to implement. I don't have .Net 2005 installed here, but the general premise should be the same regardless of coding language. You can find the general algorithm here.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...