Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Are there general accounts of adjusting intervals in a table when other intervals are expanded or shrunk?
Post Flair (click to view more posts with a particular flair)
Post Body

I have a text editor with addressing by (line, column) pairs. In this editor, intervals (line, column) - (line, column) represent regions. These intervals are stored in an interval tree for efficient lookup.

Insertions and deletions may span multiple lines. Word-wrapping is handled separately. When text is inserted or deleted, all intervals overlapping with or following the inserted or deleted text need to be adjusted. Some cases are easy and I already handle most of them correctly, but some cases are more complex and I fear I've missed some edge cases. Is there a systematic theory for these kinds of interval adjustments? If not, are there known implementations and other resources I could use for checking my implementation?

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
55,030
Link Karma
340
Comment Karma
54,332
Profile updated: 3 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 months ago