Data structures are extensively used in Embedded systems! This post talks about the use of trees in power management.