User Tools

Site Tools


haas:fall2015:data:projects:sll3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
haas:fall2015:data:projects:sll3 [2015/08/25 10:08] – external edit 127.0.0.1haas:fall2015:data:projects:sll3 [2015/10/09 23:03] (current) – [list library] wedge
Line 37: Line 37:
 Specifically, we have an after pointer, so that we can point to an entirely separate list, along with a newly added qty variable, which will keep track of the number of nodes in the list. Specifically, we have an after pointer, so that we can point to an entirely separate list, along with a newly added qty variable, which will keep track of the number of nodes in the list.
  
-To implement **qty**, all list functions that perform manipulations to the list will need to see some updating (**insert()**, **append()**, **obtain()**, and **mklist()**).+To implement **qty**, all list functions that perform manipulations to the list will need to see some updating (**insert()**, **append()**, **obtain()**, **cplist()**, and **mklist()**).
  
 **mklist()** should also set the list's **after** pointer to a sane initial state (NULL). **mklist()** should also set the list's **after** pointer to a sane initial state (NULL).
Line 45: Line 45:
  
 ====list library==== ====list library====
 +
 +===sll3 list functions===
 +Here is what you should get for the specific functions relevant to sll3:
 +
 +<cli>
 +lab46:~/src/data/sll3$ make check
 +======================================================
 +=    Verifying Singly-Linked  List Functionality     =
 +======================================================
 +    [mklist] Total:  21, Matches:  21, Mismatches:   0
 +    [cplist] Total:  14, Matches:  14, Mismatches:   0
 +    [insert] Total:  21, Matches:  21, Mismatches:   0
 +    [append] Total:  21, Matches:  21, Mismatches:   0
 +    [obtain] Total:  44, Matches:  44, Mismatches:   0
 +======================================================
 +   [RESULTS] Total: 121, Matches: 121, Mismatches:   0
 +======================================================
 +lab46:~/src/data/sll3$ 
 +</cli>
 +
 +===entire list===
 Here is what you should get for all the functions completed so far in the list library (sll0+sll1+sll2+sll3): Here is what you should get for all the functions completed so far in the list library (sll0+sll1+sll2+sll3):
  
 <cli> <cli>
-lab46:~/src/data/sll3$ bin/verify-list.sh +lab46:~/src/data/sll3$ bin/verify-list.sh
 ====================================================== ======================================================
 =     Verifying Singly-Linked List Functionality     = =     Verifying Singly-Linked List Functionality     =
Line 54: Line 75:
     [mklist] Total:  21, Matches:  21, Mismatches:   0     [mklist] Total:  21, Matches:  21, Mismatches:   0
     [insert] Total:  21, Matches:  21, Mismatches:   0     [insert] Total:  21, Matches:  21, Mismatches:   0
-  [displayf] Total:   4, Matches:   4, Mismatches:   0+  [displayf] Total:  10, Matches:  10, Mismatches:   0
     [getpos] Total:   8, Matches:   8, Mismatches:   0     [getpos] Total:   8, Matches:   8, Mismatches:   0
     [setpos] Total:   9, Matches:   9, Mismatches:   0     [setpos] Total:   9, Matches:   9, Mismatches:   0
Line 60: Line 81:
 [searchlist] Total:  11, Matches:  11, Mismatches:   0 [searchlist] Total:  11, Matches:  11, Mismatches:   0
     [cplist] Total:  14, Matches:  14, Mismatches:   0     [cplist] Total:  14, Matches:  14, Mismatches:   0
-  [displayb] Total:   6, Matches:   6, Mismatches:   0+  [displayb] Total:  10, Matches:  10, Mismatches:   0
    [compare] Total:  15, Matches:  15, Mismatches:   0    [compare] Total:  15, Matches:  15, Mismatches:   0
     [obtain] Total:  44, Matches:  44, Mismatches:   0     [obtain] Total:  44, Matches:  44, Mismatches:   0
Line 68: Line 89:
   [sortlist] Total:  27, Matches:  27, Mismatches:   0   [sortlist] Total:  27, Matches:  27, Mismatches:   0
 ====================================================== ======================================================
-   [RESULTS] Total: 210, Matches: 210, Mismatches:   0 +   [RESULTS] Total: 226, Matches: 226, Mismatches:   0 
-======================================================+====================================================== 
 lab46:~/src/data/sll3$  lab46:~/src/data/sll3$ 
 </cli> </cli>
- 
 =====Submission===== =====Submission=====
 {{page>haas:fall2015:common:submitblurb#DATA&noheader&nofooter}} {{page>haas:fall2015:common:submitblurb#DATA&noheader&nofooter}}
  
haas/fall2015/data/projects/sll3.1440497312.txt.gz · Last modified: 2015/10/09 23:01 (external edit)