Monday, January 27, 2014

Day 6 : Connections

This morning, I went around and implemented a separate view level for the connections, and through a separate function, the fate for every possible connection is randomly chosen (using Matlab's inbuilt "randi"), going through a complexity of (n*n!).
Although not optimised, it's the most elegant model I could think of so far, as it gives a fair chance to every possible connection, without having to face the hassle of repetitions. As usual, the code is updated in the repository.

Next Up: 
  • Increment/Decrement
    • Change the Degree of the agent node (attribute - NumOfConnections) when a connection is made or severed.
    • For this, I am currently pondering on how to connect the two views. I will use setter-getters for the Node properties, it's a well accepted method and needs no advocacy. I'll try to have that as a part of the script that generates the connections, or invoke both from a separate script.
So Long. 

No comments:

Post a Comment