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

  • SEARCH
  • Home
  • 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 7542607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:12:45+00:00 2026-05-30T08:12:45+00:00

How will you implement a tree structure in C for navigation in preorder depth-first

  • 0

How will you implement a tree structure in C for navigation in preorder depth-first manner?

  • 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-30T08:12:46+00:00Added an answer on May 30, 2026 at 8:12 am

    A tree can be represented by two arrays: one that holds pre-order traversal and the second hold in-order traversal. This thread discusses [among other things] how it can be done.

    Since array traversal is usually faster then tree traversal [due to cache performance mainly], you can represent the tree as 2 arrays, and use the pre-order traversal one to iterate.

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

Sidebar

Related Questions

I have a generic Tree class which will implement ICollection< T > (and hence
I'm trying to implement a tree-like structure with two classes: Tree and Node .
I am busy with a project where I will be implementing a tree structure
I have a sql server 7.0 database and I will implement a web service
I have 2 base interfaces, IViewBase (which all views will implement) and IPresenterBase (which
How will you approach to implement a WYSIWYG document editor in WPF? This editor
If I implement an interface on a base class will it be inherited by
I've been asked to implement some code that will update a row in a
I'm trying to implement a socket server that will run in most shared PHP
I'd like to implement a ListView that will have a list of SelectedItems as

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.