• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

need some help to start a C code



Hello group,

I'm doing a research on a hardware algorithm which part of it has to be implemented or represented either in a language such as VHDL or C which to save time I rather going with C.

I have to implement a binary tree which I have not used it for years. My questions is where can I find a small working example of a binary search that I can modify and use it to learning purposes?


Thanks.
0
akohan
Asked:
akohan
2 Solutions
 
williamcampbellCommented:
0
 
gatorvipCommented:
Remember that a key element for the BST algorithm to work is that your data set (array) must be sorted

Wiki article: http://en.wikipedia.org/wiki/Binary_search

example in c: http://www.daniweb.com/code/snippet164.html#

0
 
akohanAuthor Commented:

Thank you so much!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now