Fractal Orbit

  • 58 Replies
  • 31420 Views
*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Fractal Orbit
« on: February 04, 2018, 11:19:12 am »
Fractal Orbit is a project that has some connection to representing structured data on 2D screen. Data can be anything, from textbooks, over source code, over business databases, over knowledge base representation. As knowledge base is directly connected to AI, I thought  this is the right place to share this project.



It is about representing knowledge trees in a way that reminds me of fractals. Children nodes orbit around parent nodes, while adjusting their magnification to fit between outer and inner circle. Clicking a child node zooms in its circle together with its grandchild nodes. Clicking a central parent node zooms out, back to the grandparent circle node. It should be interesting to follow node links in and out from one tree node to another, even across indirectly connected nodes of the tree.

I think it would look cool on round smart watches :)

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Fractal Orbit
« Reply #1 on: February 04, 2018, 02:52:27 pm »
Interesting - is this a project by yourself Ivan ?

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Fractal Orbit
« Reply #2 on: February 04, 2018, 03:49:06 pm »
Thank you, Freddy.

Yes, it is another project of mine in development. I plan to use it as a structural editor for a logic framework I'm developing (still have to inform you about progress), but I may also find another, less interesting uses, I'll see.  Like in arranging chapters and sub-chapters of markdown documents inside circles (documentation), or in arranging forum like conversations in a structured way (collaboration), or in knowledge versioning (parallel domain universes). It is about trees of data, and as such, it should fit anywhere in the information world, which means AI knowledge base in my primary interest. I'm also excited about possibility of crowdsource powered building of ontologies (like Sumo or WordNet).

*

Zero

  • Eve
  • ***********
  • 1287
Re: Fractal Orbit
« Reply #3 on: February 04, 2018, 06:19:08 pm »
I really like it, congratulations!

It would probably fit well in a "touch" environment: various gestures would rotate, zoom in/out, translate, and edit.

*

ranch vermin

  • Not much time left.
  • Terminator
  • *********
  • 947
  • Its nearly time!
Re: Fractal Orbit
« Reply #4 on: February 04, 2018, 11:37:17 pm »
I love this project of yours Ivan, I also love fractals.

Each level is a magnification of the level before, and its actually the same as multiplication.   But ur different levels dont have to just be a repeat if ur using it for data purposes.

But I dont believe in your ability to understand this subject, if you dont take advantage of the compressability here, and i think youve bunged your project. :)
« Last Edit: February 05, 2018, 12:22:28 am by ranch vermin »

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: Fractal Orbit
« Reply #5 on: February 05, 2018, 12:50:38 am »
 I really like circles and kirigami folds:

https://www.youtube.com/watch?time_continue=1&v=spUNpyF58BY   

*

Zero

  • Eve
  • ***********
  • 1287
Re: Fractal Orbit
« Reply #6 on: February 05, 2018, 08:38:59 am »
I love this project of yours Ivan, I also love fractals.

Each level is a magnification of the level before, and its actually the same as multiplication.   But ur different levels dont have to just be a repeat if ur using it for data purposes.

But I dont believe in your ability to understand this subject, if you dont take advantage of the compressability here, and i think youve bunged your project. :)
The fractal is not in the dataset, but in the presentation of the dataset. Only the interface is fractal-like. Well, the dataset can be fractals.

It reminds me the design of a wonderful game named The Machine.

Ivan.moony if you can make it as a "universal" pluggable UI tool, you'd make a lot of people veeery happy!
 ;)

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Fractal Orbit
« Reply #7 on: February 05, 2018, 11:18:15 am »
The thing initially really slowed down even at some low recursion level like four or five. If each level has, say 100 children, then the first level has 100 nodes, second 100 * 100, third 100 * 100 * 100, and so on. That is very steep exponential curve, which I solved by measuring a radius of each node. If the radius is less than 2.5 pixels, I don't enter the recursion, and things get fast enough to get a static image.

Calculating positions and radiuses was a tricky thing. I tried to make it mathematically correct, but when I entered a system of equations to Wolfram Alpha, I got two pages long solutions. I also tried an option of making inner and outer circles concentric, drawing child circles each with the same smaller fit radius, then 3D rotating the whole thing, so the near circles get big, and far ones small. This was also unacceptable, as there was a big focus distorsion of coordinates on very near circles.

I finally settled down with binary search of x, y and r. First I set bounds on minimum and maximum coordinates and radius, then I check if circles intersect, and that is a case when:
  • the distance between centers is less than the sum of radiuses - for one circle next to another
  • absolute value of radius difference is less than the distance between centers - for one circle inside another
If there is an intersect, I half the position and radius in one direction. If there is no intersect, I half the position and radius in the other direction. After some 16 steps for each circle (I actually measure a pixel precision to stop the binary search), I get coordinates and radius precise enough to draw it without noticing an error in approximation. Surprisingly, this is a very fast method, probably faster than getting mathematically correct model because each calculation step is very simple.

More or less I'm done with the static part (the posted image is actual browser screenshot), but I still have to make it responsible to mouse drags and clicks. Also, each node will probably have a user defined HTML to draw it at certain magnification level (I still have to check the speed of this perversion).

Then It probably goes to Github, but I'll give it another thought after it's finished.

[Edit] I attached another screenshot...
« Last Edit: February 05, 2018, 11:55:44 am by ivan.moony »

*

Zero

  • Eve
  • ***********
  • 1287
Re: Fractal Orbit
« Reply #8 on: February 05, 2018, 01:45:13 pm »
Man you're my god.

If it's a little cpu-intensive, maybe a web worker can do part of calculations in the background, so you stay sanely responsive.

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Fractal Orbit
« Reply #9 on: February 05, 2018, 03:39:42 pm »
Quote
Man you're my god.
Thank you, but a simple `like` would be enough for me. No need for exaggerating.

If it's a little cpu-intensive, maybe a web worker can do part of calculations in the background, so you stay sanely responsive.
Webworkers are cool, but I think a bit heavyweight if you use a lot of short threads. Anyway, I might try it if necessary.
« Last Edit: February 05, 2018, 07:52:49 pm by ivan.moony »

*

WriterOfMinds

  • Trusty Member
  • ********
  • Replicant
  • *
  • 620
    • WriterOfMinds Blog
Re: Fractal Orbit
« Reply #10 on: February 05, 2018, 09:05:22 pm »
Neat idea.  Is it compatible with trees that feature multiple inheritance, or is it necessary that each child only have one parent?

*

ivan.moony

  • Trusty Member
  • ************
  • Bishop
  • *
  • 1729
    • mind-child
Re: Fractal Orbit
« Reply #11 on: February 05, 2018, 09:49:15 pm »
Neat idea.  Is it compatible with trees that feature multiple inheritance, or is it necessary that each child only have one parent?
Thank you WriterOfMinds, very kind of you :)

One parent limitation is not necessary if we don't want it. So, how could multiple parents be created? Suppose we have a tree:
Code
node-1 {
    node-1-1 {
        node-1-1-1,
        node-1-1-2,
        node-1-1-3
    },
    node-1-2, {
        node-1-2-1,
        node-1-2-2,
        reference-to-node-1-1
    },
    node-1-3 {
        reference-to-note-1-1
    }
}
From this tree it follows that `node-1-1` has three parents: initial `node-1` by definition place, and nodes `node-1-2` and `node-1-3` by referencing places.

I'm sure there are other methods too, but this one is the best I have for now. May I ask would this be compatible with Acuitas' knowledge base?

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: Fractal Orbit
« Reply #12 on: February 05, 2018, 11:47:53 pm »
Connections? Connect one orb/ball to another far away one, with a weight/strength, that adapts with time. ???
Emergent          https://openai.com/blog/

*

Zero

  • Eve
  • ***********
  • 1287
Re: Fractal Orbit
« Reply #13 on: February 06, 2018, 10:44:08 am »
Oh God... ;)
For multiple parents, "up" could mean parent and "down" could mean child. When dragging, the thing would move as if it was projected on a sphere.

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
Re: Fractal Orbit
« Reply #14 on: February 06, 2018, 03:31:54 pm »
Nice but some of us do not use Facebook so that Machine reference was just a glance.

Good fractal work!
In the world of AI, it's the thought that counts!

 


LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

264 Guests, 0 Users

Most Online Today: 323. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles