I am trying to design the data structure to support data that looks like the following for example, according to the first line if X<=15 and Y<=78.00 and X>625500 i need to populate Z as some value.
设计这个方法的最佳方法是什么,以便数据储存和检索既有效率又优雅?树能工作吗?
P.S.我不想在数据库中存储这个数据集,但宁愿在 Java 数据结构中存储
谢谢,多谢
X Y Z
<= 15 <= 78.00 > 625,500
<= 15 <= 78.00 <= 625,500
<= 15 78.01 - 90.00 > 625,500
<= 15 78.01 - 90.00 <= 625,500
<= 15 > 90.00 > 625,500
<= 15 > 90.00 <= 625,500