Thread: Pointers, useful? Please explain!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by RealityFusion
    Other then that though I am still trying to figure out the point of binary trees and more advanced data structures.
    Efficiency. Consider the following two structures

    Code:
    [1][8][4][7][6][2][9][3][5][0]
    Code:
               [5]
             /     \
          [2]       [8]
          / \       / \
       [1]   [3] [7]   [9]
       /         /
    [0]       [6]
    In the first structure, the furthest data is 10 iterations away. In the second structure, it's only 4.
    Last edited by SlyMaelstrom; 02-22-2006 at 04:06 PM.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hey guys..need help on pointers
    By Darkozuma in forum C++ Programming
    Replies: 5
    Last Post: 07-25-2008, 02:57 PM
  2. Using pointers to pointers
    By steve1_rm in forum C Programming
    Replies: 18
    Last Post: 05-29-2008, 05:59 AM
  3. Replies: 18
    Last Post: 06-14-2003, 10:40 AM
  4. Pointers on pointers to pointers please...
    By Morgan in forum C Programming
    Replies: 2
    Last Post: 05-16-2003, 11:24 AM
  5. API "Clean Up" Functions & delete Pointers :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-10-2002, 06:53 PM