Efficient Algorithms for Solving Size-Shape-Topology Truss Optimization and Shortest Path Problems