User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 427,227 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,224 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 181 | Replies: 1
Reply
Join Date: Jul 2008
Posts: 1
Reputation: sunny1304 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sunny1304 sunny1304 is offline Offline
Newbie Poster

binay heap and binary search tree help

  #1  
Jul 24th, 2008
hi guys,

this is my first post here.

may be my question sound very silly and stupid to you....apology for that.

can anyone plz provide me the above algorithm :

1. c++ algorithm for finding the i th smallest element from a binary heap .

2. c++ algorithm to find the number of internal nodes of a binary search tree.

3. C++ algorithm to check whether a binary search tree is balanced or not.

its important for me to solve these problems.

if anyone has the solutions plz tell me.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Posts: 1,776
Reputation: VernonDozier is just really nice VernonDozier is just really nice VernonDozier is just really nice VernonDozier is just really nice VernonDozier is just really nice 
Rep Power: 8
Solved Threads: 219
VernonDozier VernonDozier is offline Offline
Posting Virtuoso

Re: binay heap and binary search tree help

  #2  
Jul 24th, 2008
Originally Posted by sunny1304 View Post
hi guys,

this is my first post here.

may be my question sound very silly and stupid to you....apology for that.

can anyone plz provide me the above algorithm :

1. c++ algorithm for finding the i th smallest element from a binary heap .

2. c++ algorithm to find the number of internal nodes of a binary search tree.

3. C++ algorithm to check whether a binary search tree is balanced or not.

its important for me to solve these problems.

if anyone has the solutions plz tell me.


Google is your friend, as well as Daniweb's and a dozen other programming forums' search engines. These are very common problems and come up all the time, so odds are that if you enter "binary search tree", "balanced binary search tree", "binary heap", etc., into Google, you'll get some links that will be exactly or at least close to what you are looking for, or at least enough to get you started. You can then make an attempt, and when you get stuck, which everyone does at first, come back here and ask a more detailed question and you'll get help.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the C++ Forum

All times are GMT -4. The time now is 11:36 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC