Threshold Treewidth and Hypertree Width