Search Algorithm

A client of mine has asked me to create a search algorithm (I'm not sure yet what the "datasource" I'll be searching against).  I have no idea where to start!!!!  I've never been asked to program an algorithm before.  I want to believe that .net has some algorithm class(es) built into it already that i can leverage.

need any advice or links to information that will get me started.  I have only a few days to let the client know whether I am able to handle his request.
davidcahanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David RobitailleAnalyst ProgrammerCommented:
well, depending of the class, .net have some function the implements some search algoritms. but it all depends of the input.
What you search?
Where you search (a database?)
What kind of output?
0
colonel720Commented:
Assuming its a relational database, you would be using .net's ADO.NET object model (System.Data) to send SQL queries to the database.
The .net framework has the foundation to implement just about anything... however you should ask your client to give you specific details on what you will be searching before you can tell him whether or not you can do it.
0
davidcahanAuthor Commented:
very true...i do need more information.  the one thing i'll say is that both of us are programmers and have been for quite some time.  He specifically said "algorithm" and not "query" so I'm assuming he is talking about something more than a simple query.

i just need some advice on where to even start.  I do searches online and don't really find much of what i'm looking for (which would be any information regarding vb.net, sql server and building algorithms).
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

David RobitailleAnalyst ProgrammerCommented:
well, as you know, algorithm are not language depeandant.
Common search algorithme invlove sorted array or more advanced data structure as a binary tree.
.net has a Dictionary class for key/object association.
there is also class like Generic.List that have methods like find, findAll and findFirst
here an exemple for FindAll
http://msdn.microsoft.com/en-us/library/fh1w7y8z.aspx 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
colonel720Commented:
Lets say your client were to ask you to search through a list of stock prices by date and find all date ranges with an average rate of increase greater than some threshold.
This is just an example, but there is no defined algorithm in .net ot in any language to do that - you would need to piece it together using data structures, loops, comparitive operators, etc.

Thats half the fun in programming.. figuring out how to solve a problem using conventional programming tactics.
0
davidcahanAuthor Commented:
ok...so really "algorithm" is just a way to say "a routine that searches through data in some systematic way (and hopefully quickly)".  so technically a stored procedure that selects data could be an algorithm?  or inserting items into an array() and then searching through them could be an algorithm?

I probably should have mentioned this beforem, but I do know this about the project:

As an example of what he wanted, He did say something about a search for "red apple" and then results:  100% red apple, 80% green apple, 70% apple, 60% orange, 40% red banana.
0
colonel720Commented:
Yes. Whatever routine you end up using to get the end results is the algorithm.
Depending on which data structures you decide to use in the implementation of the algorithm, there may be methods to help you along the way.. as davrob60 mentioned above - certain collection classes have find methods to save you from having to manually loop through them.
As for which data structures to use in your algorithm - thats completely dependent on the problem being solved by it, and what kind of information it needs to process. Deciding that is up to you, the process architect.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.