2 Replies - 1299 Views - Last Post: 23 March 2012 - 11:45 AM Rate Topic: -----

#1 Simon818  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-March 12

Problem with Implementing Binary Search/AVL Trees

Posted 23 March 2012 - 11:14 AM

Hi,

I am having a real problem implementing a Binary search/AVL tree.

The search tree should contain details of known criminals. The criminal object which i have coded is below

Spoiler


I have attempted to piece together an attempt at implementing an AVL/tree from what i have read in my notes and from the internet.
Spoiler


Any advice as to where i am going wrong will be appreaciated. If i have broke any rules please inform me and i will take it down. I feel stupid for asking as i know it is something quite simple which i have over looked

Is This A Good Question/Topic? 0
  • +

Replies To: Problem with Implementing Binary Search/AVL Trees

#2 Curtis Rutland  Icon User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4577
  • View blog
  • Posts: 8,019
  • Joined: 08-June 10

Re: Problem with Implementing Binary Search/AVL Trees

Posted 23 March 2012 - 11:40 AM

First, we really can't help with such a general question. We can't do much with a "here's my code, what's wrong with it?" question. Please explain what is and isn't working, and what you've tried to do to fix it. Then we can work on resolving it together.

Also, that code looks quite familiar. Are you in the same class as this guy?
Was This Post Helpful? 0
  • +
  • -

#3 Simon818  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-March 12

Re: Problem with Implementing Binary Search/AVL Trees

Posted 23 March 2012 - 11:45 AM

Firstly thank you for replying. It seems as though i am in his class, yes.

That is the problem i'm having i dont really know what is wrong with my code. I'm finding the binary search trees very confusing. The object Criminal is correct i believe. I just cant seem to figure out how to store that object within a binary tree.

Again apologies if i have broken the rules and understand why you are not able to provide me with an answer
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1