User Tools

Site Tools


Sidebar

projects

wcp1 (due 20240124)
pct0 (bonus; due 20240125)
pct1 (bonus; due 20240125)
abc0 (due 20240131)
btt0 (due 20240131)
pct2 (due 20240131)
wcp2 (due 20240131)
mpg0 (due 20240207)
pct3 (bonus; due 20240207)
wcp3 (due 20240207)
mpg1 (due 20240214)
pct4 (due 20240214)
wcp4 (due 20240214)
bwp1 (bonus; due 20240228)
mpg2 (due 20240228)
pct5 (bonus; due 20240228)
wcp5 (due 20240228)
cgf0 (due 20240306)
gfo0 (due 20240306)
pct6 (due 20240306)
wcp6 (due 20240306)
cgf1 (due 20240313)
pct7 (bonus; due 20240313)
wcp7 (due 20240313)
cgf2 (due 20240320)
pct8 (due 20240320)
wcp8 (due 20240320)
pct9 (bonus; due 20240327)
wcp9 (due 20240327)
bwp2 (bonus; due 20240410)
cgf3 (due 20240410)
gfo1 (due 20240410)
pctA (due 20240410)
wcpA (due 20240410)
pctB (bonus; due 20240417)
waq0 (due 20240417)
wcpB (due 20240417)
pctC (due 20240424)
waq1 (due 20240424)
wcpC (due 20240424)
pctD (bonus; due 20240501)
wcpD (bonus; due 20240501)
gfo2 (due 20240508)
pctE (bonus; due 20240508)
wcpE (bonus; due 20240508)
EoCE (due 20240516)
haas:spring2024:data:projects:dll2

Corning Community College

CSCS2320 Data Structures

PROJECT: Lists - Doubly-Linked Lists of Nodes (DLL2)

OBJECTIVE

We prepare to shift our focus onto a different data structure, that of doubly-linked stacks, and collaboratively authoring and documenting the project and its specifications.

OVERVIEW

With our list implementation completed, we will be making some modifications to better suit our implementation for our next intended data structure, stacks. Namely, adding the qty element to the list struct, and adding more modes to display().

UPGRADING

To assist with consistency across all implementations, project files for use with this project, along with the integration of the work you did on the last project, is made possible via a special recipe in the Makefile.

Simply go into the project base directory, and run:

lab46:~/src/SEMESTER/DESIG/prevPROJECT$ make upgrade-dll2

EDIT

You will want to go here to edit and fill in the various sections of the document:

BACKGROUND

SPECIFICATIONS

This week we are making some minor additions to the previous dll1 project.

First of all, a qty property has been added to the list struct (similar to sll3). This qty property keeps track of the number of nodes within a list. Adjust your functions to implement this new property.

  • qty: An 'unsigned long int,' that indicates the number of nodes contained within the 'list.'

Secondly, you will be redoing your display() function to include some new modes. The mode can be obtained from modding 16. Once you upgrade to dll2, your display function will be empty, but you may reuse your display code from dll1 and then add the new modes. Remember to change your invalid node handling first, otherwise you wont be able to accommodate for the new modes.

*Our task is to ask questions on Discord or in class and document our findings on this wiki page collaboratively, regarding the functionality of this project.

*For anybody interested in editing the wiki page, here is the dokuwiki user guide: https://www.dokuwiki.org/wiki:syntax#basic_text_formatting -Ash

If one is confused as to what modes correlate to what settings, this can be found in the data.h file inside the inc directory. Note that the new display maintains all the functions of the old display, so it is likely time-efficient to copy over your old display and edit it, rather than starting from scratch.

PROGRAM

Not too much to do besides display for this project. You are to add a qty similar to what we did in sll3 to all your functions that require it. Any functions that add a node, need to also increment the qty amount. While all the functions that remove a node, need to decrement the qty amount. The copy function now needs to copy the qty from the old list as well. Display will start from scratch with a fresh display.c file provided to you when you upgrade.

  • qty handling in [mklist], [append], [insert], [obtain]
  • new modes for [display]

OUTPUT SPECIFICATIONS

No new output from any function aside from display.

Display will have new modes of ASCII and Separators. The rest was previously available in your old display function.

UNIT TESTS

Unit tests this week are for the new qty values relating to your functions, and your new display function. Looking at the display unit tests is a good way to see what is the desired output for your display function and should be frequently referenced when building your display function. Unit tests are ran the same way this week as well, with make, and make check. Remember to run make clean before a new make to clean up old files. Also, you can make use of the make command -make use-test-reference. This uses a working implementation of object files from the previous dllX projects, and can very much help you if your previous projects did not pass all unit tests.

 

SUBMISSION

To be successful in this project, the following criteria (or their equivalent) must be met:

  • Project must be submit on time, by the deadline.
    • Late submissions will lose 33% credit per day, with the submission window closing on the 3rd day following the deadline.
  • All code must compile cleanly (no warnings or errors)
    • Compile with the -Wall and –std=gnu18 compiler flags
    • all requested functionality must conform to stated requirements (either on this document or in a comment banner in source code files themselves).
  • Executed programs must display in a manner similar to provided output
    • output formatted, where applicable, must match that of project requirements
  • Processing must be correct based on input given and output requested
  • Output, if applicable, must be correct based on values input
  • Code must be nicely and consistently indented
  • Code must be consistently written, to strive for readability from having a consistent style throughout
  • Code must be commented
    • Any “to be implemented” comments MUST be removed
      • these “to be implemented” comments, if still present at evaluation time, will result in points being deducted.
      • Sufficient comments explaining the point of provided logic MUST be present
  • No global variables (without instructor approval), no goto statements, no calling of main()!
  • Track/version the source code in your lab46 semester repository
  • Submit a copy of your source code to me using the submit tool (make submit on lab46 will do this) by the deadline.

Submit Tool Usage

Let's say you have completed work on the project, and are ready to submit, you would do the following:

lab46:~/src/SEMESTER/DESIG/PROJECT$ make submit

You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.

RUBRIC

I'll be evaluating the project based on the following criteria:

65:dll2:final tally of results (65/65)
*:dll2:obtained project by the Sunday prior to duedate [6/6]
*:dll2:clean compile, no compiler messages [13/13]
*:dll2:implementation passes unit tests [13/13]
*:dll2:adequate modifications to code from template [13/13]
*:dll2:program operations conform to project specifications [13/13]
*:dll2:code tracked in lab46 semester repo [7/7]

Pertaining to the collaborative authoring of project documentation

  • each class member is to participate in the contribution of relevant information and formatting of the documentation
    • minimal member contributions consist of:
      • near the class average edits (a value of at least four productive edits)
      • near the average class content change average (a value of at least 256 bytes (absolute value of data content change))
      • near the class content contribution average (a value of at least 1kiB)
      • no adding in one commit then later removing in its entirety for the sake of satisfying edit requirements
    • adding and formatting data in an organized fashion, aiming to create an informative and readable document that anyone in the class can reference
    • content contributions will be factored into a documentation coefficient, a value multiplied against your actual project submission to influence the end result:
      • no contributions, co-efficient is 0.50
      • less than minimum contributions is 0.75
      • met minimum contribution threshold is 1.00

Additionally

  • Solutions not abiding by spirit of project will be subject to a 50% overall deduction
  • Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction
  • Solutions not utilizing indentation to promote scope and clarity or otherwise maintaining consistency in code style and presentation will be subject to a 25% overall deduction
  • Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction
haas/spring2024/data/projects/dll2.txt · Last modified: 2022/10/31 11:45 by 127.0.0.1