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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:20:58+00:00 2026-05-31T01:20:58+00:00

I did a project a while back on path finding with quadtrees and I

  • 0

I did a project a while back on path finding with quadtrees and I would like to improve on its performance. It seems that using tesseral arithmetic to determine node adjacency (as per this page, courtesy of the Geography department of the University of British Columbia) would be much faster than the brute force method I’m using at the moment (I’m checking for shared edges, which works fine for a static quadtree but would be too much overhead if the map were changing).

I more or less understand what’s said in the Adjacency Algorithm section, but I’m not really sure how to begin. I’m primarily interested in C#, but it’d be awesome if there’s already some source floating around for working with tesseral arithmetic that I could look at, regardless of language. Otherwise, could anyone give me some pointers on dealing with the addition/subtraction carries?

  • 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-31T01:20:59+00:00Added an answer on May 31, 2026 at 1:20 am

    I think, the easiest way to deal with tesseral arithmetic is to “bit-unzip” numbers, perform any number of arithmetical operations normally, and “bit-zip” them back when tesseral form is needed:

    z = bit_zip(bit_unzip(x) + bit_unzip(y));
    

    (This example works for unsigned only. For signed integers, unpack each number into two variables and do normal arithmetic on both parts separately).

    You can find fast implementations for “bit-unzip” and “bit-zip” in “Matters Computational
    “, chapter 1.15 “Bit-wise zip”.

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

Sidebar

Related Questions

I'm developing a project using Maven. After a while i did update Project Configuration
i like to setup for my project i did my project in Microsoft visual
We have an existing Traceability Matrix in Excel that has columns like: Project Business
I was assigned the task of updating a very old project a while back.
I mean name off a programming project you did and how long it took,
I lost the source code from one project I did on the company I'm
I just did File -> New Project last night on a new project. Ah,
I checked out a project from SVN and did not specify the project type,
I renamed my project from MyProjectName to MyNewProjectName. I did a complete find/replace on
I just started my first Mercurial project. I did a 'cd' into my source

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.