Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8868631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:18:56+00:00 2026-06-14T17:18:56+00:00

I have groups which can have sub-groups. The sub-groups can have their own sub-groups,

  • 0

I have groups which can have sub-groups. The sub-groups can have their own sub-groups, and so on. There is no limit to the depth of this tree-like structure.

I have been reading about Tries, http://en.wikipedia.org/wiki/Trie. It seems to me that the data structure I am envisaging is similar to a Trie, but with a couple of differences.

Firstly, in my case, values are associated with every node. (For example, the value may be Group Name and Group Description). Although the Trie structure allows for this, I am wondering if there is a more specific name for the variation that has values associated with every node?

Secondly, I have multiple roots. Another way to look at this is that I have a collection of related Tries. Is there a name for a data structure that is a collection of Tries?

I’m trying to implement that in PHP. If you have any tips that would be mighty impressive.

EDIT: I want to be able to ‘add’, ‘edit’, ‘remove’ and ‘retrieve’ nodes. (No need to for ‘move’.) Retrieval will happen very frequently, but not the other actions. I’m not too worried about performance, since this is not the most commonly used part of the overall application.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:18:57+00:00Added an answer on June 14, 2026 at 5:18 pm

    What you described isn’t really a trie. A trie is more like a state machine that associates a key to a value while navigating through parts of the key as nodes.

    You described a generic rooted tree. A simple trie is also a tree. There are trie-like structures that aren’t trees. Most things that look like a tree are trees.

    And the collective of trees is called forest.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application I have groups which are essentially just tags that can be
I have this query which groups the results by ORDER#. SELECT ORDER#, MAX(SHIPDATE -
If I have a string like 11E12C108N which is a concatenation of letter groups
I'm trying to link one table to itself. I have media groups which can
I have a table of node likes, which looks roughly like this: lid nid
I have a SQL which can count the condition(Bad,Poor,Worse) in a day and group
I have a shape in Visio which is a group. The group shape can
I have a linked list, which stores groups of settings for my application: typedef
I have a list of MyObjects which I need to divide into three groups:
I have 4 group of checkboxes, in which i am grouping all this 4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.