1. Seeing data structure clearly
Seeing data structure clearly

Seeing data structure clearly

Being able to list out data in the correct order is something you have to do a lot in programming — and it can be challenging to get it right. Here’s a simple idea that can help you think through your data.


  • SAMPLE LESSON: VISUALIZING A QUEUE WITH POST-IT® PRODUCTS

    It’s a simple concept but one that’s tough to visualize — FIFO (First-In-First-Out) data structure. Before writing lines of code directly into your compiler, visualize your queue using some at-hand tools. Read the steps below to see how.

  • 1
    Open the code compiler on your computer, and start thinking through your data sets.
  • 2

    Write each set of data on a Post-it® Super Sticky Note or Post-it® Page Marker, and then place them on a sheet of paper in the correct order. Keep in mind how they will be stacked up in the queue—first in, first out.

    Write each set of data on a Post-it® Super Sticky Note or Post-it® Page Marke

  • 3

    Then, so you can visualize the order in which the data leaves the queue, pull each Post-it® Super Sticky Note or Post-it® Page Marker off the sheet in the correct order. Remember, the first element added to the queue should be the first one to be removed. Our example uses simple numbers, but this idea can be used with much more complicated data sets.

    pull each Post-it® Super Sticky Note or Post-it® Page Marker off the sheet in the correct order

  • 4

    Visualizing items stacking up in your queue - and then visualizing them leaving the queue - can be a useful tool when learning to code. It’s a simple idea that helps make it easy and fun to learn.

    Visualizing items stacking up in your queue — and then visualizing them leaving the queue — can be a useful tool when learning to code

study technology programming development code super_sticky_notes page_markers education student

TAGS
    Follow Post-it® Brand
    Post-it Brand is a trademark of 3M.
    Change Location
    United States - English