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 6851423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:14:46+00:00 2026-05-27T01:14:46+00:00

Please have a look: So basically I have a tree like architecture which is

  • 0

Please have a look:

Tree Like architecture

So basically I have a tree like architecture which is not really a tree because the root node might or might not be available at all times.

Root is connected to many children which in turn may or may not be connected to other childs. All nodes at one particular level or similar objects with different id’s as their identifiers.

I am thinking to implement it as a tree but then with a large data set it may be hard to search particular node. Or should i may be make a single Map Object at each level and based upon their key i will be able to serach their relation to parent node if it exists or not??

Or do you think there is anyother better way of doing this, because if i take it as a tree it would grow randomly, plus in it’s extension i have a problem that some children will have many parent nodes and this is probably not possible in tree??

Please suggest some implementation idea?

  • 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-05-27T01:14:46+00:00Added an answer on May 27, 2026 at 1:14 am

    You could represent it as an oriented graph: each node has incoming edges from its parents and outgoing edges to its children:

    public class Node {
        private List<Object> parents;   // incoming
        private List<Object> children;   // outgoing
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please have a look at this form that I am trying to design with
Please have a look at the code below: import string from collections import defaultdict
Please have a look at this page www.pixeli.ca/issue. I have begun making a page
Please have a look at this demo page that I cooked up a while
Please have a look on the code below .. <div id=click_me>Save</div> <div id=blocks_sortable> <div
Could you please have a look at my code below. #!C:\Perl\bin\perl.exe use strict; use
In my current project, Workflows have comments. Please have a look at the following
I have just started to look at .NET 3.5 so please forgive me if
I have a problem with internet explorer 6 and 7, please look this example
am new here. i have a slight problem; PLease look at the following code

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.