need some help to start a C code

Posted on 2009-04-17
Last Modified: 2012-05-06

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?

Question by:akohan
    LVL 12

    Accepted Solution

    LVL 20

    Assisted Solution

    Remember that a key element for the BST algorithm to work is that your data set (array) must be sorted

    Wiki article:

    example in c:


    Author Comment


    Thank you so much!

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
    The greatest common divisor (gcd) of two positive integers is their largest common divisor. Let's consider two numbers 12 and 20. The divisors of 12 are 1, 2, 3, 4, 6, 12 The divisors of 20 are 1, 2, 4, 5, 10 20 The highest number among the c…
    The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now