2-3-4 Tree Design Help

This is a discussion on 2-3-4 Tree Design Help within the C++ Programming forums, part of the General Programming Boards category; Hi all, I'm designing a template 2-3-4 Tree and I've implemented more than what I'll show you but this is ...

  1. #1
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391

    2-3-4 Tree Design Help

    Hi all,

    I'm designing a template 2-3-4 Tree and I've implemented more than what I'll show you but this is the basic design:
    Code:
    template <typename T> class Tree{
    
        private:
    
            class Bucket{
    
                class Node{
    
                };
    
                class Bucket_iterator{
    
                };
            };
    
        public:
    
    };
    Does this setup seem right to you guys? Thoughts?

    Thank You in advance.
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Does this setup seem right to you guys?
    Sure, I guess. It really depends on the details that you so kindly omitted, but I can see how what you have could work.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  2. Binary Tree, couple questions
    By scoobasean in forum C Programming
    Replies: 3
    Last Post: 03-12-2005, 08:09 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 10:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21