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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:23:29+00:00 2026-06-11T12:23:29+00:00

I am currently implementing some sort of text-version (revision) comparison visualizations and am trying

  • 0

I am currently implementing some sort of text-version (revision) comparison visualizations and am trying to find some information about how wikipedia achieves their “View History”-feature in which they allow to compare the current revision with an older one.

You can find one example (About stackoverflow!) here:

http://en.wikipedia.org/w/index.php?title=Stack_Overflow&diff=512241244&oldid=458578615

I have implemented several ideas so far and also tried to reproduce the way wikipedia is doing it. For this I’ve implemented the Levenshtein-distance algorithm ( http://en.wikipedia.org/wiki/Levenshtein_distance ).

Lets assume I have two lists. I am iterating over the first list and check for the index-position of the first list on the second if the string found there is more than 50% equal. If it is, I’ll just print both Strings side by side in my comparison view and continue with the next item of the first list. If it is not, I check the next item in the second list until I find it or leave the field for the second list blank if it cannot be found. (Although I would basically prefer that a sentence from the second list also always appears on the comparison view instead of leaving it out, just e.g. with a blank field for the first list field)

This method has some weaknesses. At first, if some sentence got deleted I would need to check the positions around the index for not simply “forgetting” it. But still I need to take care that text positions don’t get inverted if I do so.

Has anyone of you tried to achieve something similar with java? If there are some code examples how others or you achieved it, I would gladly take a look to learn from it.

And of course, if you know anything about the algorithm wikipedia (and general wikis I assume?) uses for their revision comparison I’d be glad to hear it.

Thanks a lot

  • 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-11T12:23:30+00:00Added an answer on June 11, 2026 at 12:23 pm

    Wikipedia explains how the wiki difference engine works – http://en.wikipedia.org/wiki/Help:Diff

    You can follow the links at the bottom of the page to learn more, but this page lists the template used.

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

Sidebar

Related Questions

I'm running some background threads in the GUI. Currently I'm implementing a personal Thread
I'm currently implementing some image processing code for Android. I'm aware of the memory
I'm currently implementing some code that should, for each method of a class, run
I'm currently implementing a software keyboard ( using some sophisticated prediction ), and drawing
I am currently re-implementing some project using Lift. All the old views were done
we have a C#-Server which runs a WCF-Service. Currently we're implementing some (DataContract)-classes. Now
I'm currently implementing some CRTP with a base class template<class CRTP> Base and derived
I'm currently implementing some machine learning algorithm by octave and run in the remote
I am working on a project, and am currently working on implementing some logging
I'm currently implementing a red-black tree data structure to perform some optimizations for an

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.