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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:39:49+00:00 2026-05-12T19:39:49+00:00

I am reading XOR linked list (from Wikipedia).But I am having some problems in

  • 0

I am reading XOR linked list (from Wikipedia).But I am having some problems in understanding it.

I am not getting following paragraph.

To start traversing the list in either direction from some point, you need the address of two consecutive items, not just one. If the addresses of the two consecutive items are reversed, you will end up traversing the list in the opposite direction.

I have few questions about it :

  1. How does it (the XOR linked list itself) actually work ?

    (It would be great if you justify your answer by giving some example.i.e
    by taking some addresses and then
    doing some calculations accordingly.)

  2. How can I implement it? A brief idea about implementation.

  3. Practically where it is or can be used? Is it really helpful as it seems?
  • 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-12T19:39:50+00:00Added an answer on May 12, 2026 at 7:39 pm
    1. The above procedure works by storing the addresses of both the next and previous elements in one field (let’s call it A). Therefore, to get the value of the next element in the list you take the address of the other element you have (which is why you need two…call it B). To find the address of the next element, you just A XOR B to get C (the location of the next element).

    2. Depends on what language you’re using. Study up on bitwise operations in whatever language you’re using and you should be able to figure it out pretty quick.

    3. It can be used anywhere you use a double-linked list (the XOR linked list will save memory). The caveat being that you have to have two sequential elements of the list to traverse through the elements.

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

Sidebar

Related Questions

I'm reading a VHDL book and having trouble understanding an example they gave. The
I have been reading this page here from MSDN regarding the XOR operator and
From reading the Weld docs I don't think this can be done, but I
i'm having a problem while encrypting some data in the file. i'm using simple
Reading code from other posts, I'm seeing something like this. struct Foo { Foo()
Reading over TRULY UNDERSTANDING VIEWSTATE the author suggests: When ASP.NET parses the form, and
Reading the following article, I managed to put a legend outside plot. How to
I have the following structures defined (names are anonymised, but data types are correct):
Doing some exercises with simple file encryption/decryption and am currently just reading in a
I'm trying to learn shellcode for a project in comp science but I’m having

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.