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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:32:42+00:00 2026-05-26T09:32:42+00:00

I am creating a mind mapping application, and I was wondering what would be

  • 0

I am creating a mind mapping application, and I was wondering what would be the best data structure for the “notes” editor. Notes might be just a few symbols, might be pages long, and are being updated, edited, shuffler around and so forth. The app is intended to run on mobile platforms so processing and memory overhead should be minimal.

My basic idea is to implement a rope / linked lists type structure that fragments notes during editing in order to avoid the overhead from reallocating notes if the container is full and to avoid allocating unnecessary space, for example with dynamically growing vectors.

However, fragmenting notes too much will inevitably introduce overhead on its own, so the second part of my implementation is planned to convert the rope structure, used during note editing into a sequential data structure for storage and fast reading.

So basically objects are stored and read from a sequential data structure, but when edited they are copied to a fragmented data structure, and when done with editing, the object is converted back.

It this a good idea? If not, then recommendations are welcome. Either way, anyone aware of some similar open source implementations I can learn from?

  • 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-26T09:32:42+00:00Added an answer on May 26, 2026 at 9:32 am

    With regards to open source, there’s always emacs:-). But I suspect
    that you’re looking for something a bit simpler.

    There is no one correct answer here. The traditional implementation
    that I’ve seen uses one very large buffer (std::vector<char> today),
    divided into three logical blocks: text before the cursor, free space,
    and text after the cursor. With this solution, moving the cursor
    entails shifting the text the cursor moves over, but inserting and
    deleting text at the cursor doesn’t involve any shifts.

    I’m not sure that the traditional approach is justified today (although
    maybe on an embedded machine). I’d start by just using
    std::vector<char> in a very naïve way, and only changing this once I
    had profiling data from typical editing sessions. I would wrap it,
    however, in a Buffer class, providing just the interface I need, in
    order to simplify future migration to a different strategy.

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

Sidebar

Related Questions

What should a web programmer keep in his mind while creating a web application
I am creating a Bug Tracker application (toy one) with DDD in mind. I
I'm creating an application that will use a lot of data which is, for
When creating a cross-browser rich text editor. Which would you use and why? Keep
When creating a web application, and lets say you have a User object denoting
I am trying to create a type of mind mapping software that runs on
i was wondering what the main things were to avoid when creating an webapplication
I'm currently creating objects for an application of mine when this stuff come to
I am creating an application which uses the Java Plugin Framework to load plug-ins
From the iPhone Programming Guide When creating files or writing out file data, keep

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.