Duality Methods In Networks, Computer Science Models, And Disordered Condensed Matter Systems