What is the best way to represent a set of synapses per dendrite per cell?

Thank you @Bitking and @rhyolight
It seems interesting. Will look into SOMs and storage mechanisms. I initially thought of storing all synapses externally and then collecting the data for every operation. Since memory optimisation is a concern, using arrays, like @rhyolight mentioned was given a priority. @nivedita and I are using Julia for the implementation and we think the performance will be considerably good after looking at certain benchmarks and testing some code.

I think storing pathways like @Bitking mentioned can be a good addition to the mechanism described in this post:
https://discourse.numenta.org/t/a-different-point-of-view-on-building-ai-system/3097

Is there an even better way to encode these biological units and functions in a workable low-memory abstraction?