Visual complexity
Try to compress the visualization to take less space in the mind. Use a 3d compression!

stack

  1. imagine adding numbers to a stack
  2. make the stack monotonic and imagine popping off numbers (increasing/decreasing)
  3. imagine next-greater / next-smaller problems

3d stack

Linear stack

Increasing stack (weight interpretation)

sliding window

  1. Imagine a sliding window, growing and shrinking by some condition (sum/freq map)

recursion

3d recursion

Linear recursion

DP

  1. Recursion, but with cached results

topological order

hash map

heap

nested loop

subsequence

bitwise, bit mask