Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>( I will explain how can you represent the picture if that is what are you asking )<br>From your picture I understand that you have 3 types of nodes and some rules:</p> <ul> <li>a) one for the number of rows and columns ( with 2 pointer )</li> <li>b) one for the size of the matrix ( 2 pointers and the witdh and height)</li> <li>c) one with the value of an element that is not zero ( with 2 pointers, the colum value and the row value of the element and the element)</li> </ul> <p>Rules:<br></p> <ol> <li>The b) element has a pointer to the first row element and first column element</li> <li>Each row element has a pointer to the next row element ( the last has a pointer to the b) element )</li> <li>Each colum element has a pointer to the next colum element and the last has a pointer to the b) element </li> <li>each row has the second pointer pointing the first c) element on their row</li> <li>each colum has the second pointer pointing to the first c) element on their colum</li> <li>each element points to: the next c) element on their row and the next c) element on their column ( if there is no next element on the row just point to the row element, and if there is no next element on the column just point to the column element)</li> </ol> <p>For each rule if you can't apply you just skip it and leave that pointer null<br> Hope it helped. <br> You can create some custom <a href="http://en.wikipedia.org/wiki/Linked_list" rel="nofollow" >linked lists </a> and just apply the rules<br> <a href="http://www.cprogramming.com/tutorial/c/lesson15.html" rel="nofollow"> Here </a> you have a simple tutorial</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload