A Novel Cost-Aware Data Placement Strategy for Edge-Cloud Collaborative Smart Systems