lookup table(也写作 look-up table,常缩写 LUT):查找表/对照表。指把“输入(键/索引)→ 输出(值/结果)”预先列成表,以便快速查到对应结果。常见于计算机编程、数据处理、电子工程与图形学等场景。
/ˈlʊkˌʌp ˈteɪbəl/
I used a lookup table to convert country codes into country names.
我用一张查找表把国家代码转换成国家名称。
To speed up the program, the developer replaced repeated calculations with a lookup table that maps each input to its precomputed output.
为了加快程序运行,开发者用一张将每个输入映射到预先计算结果的查找表,替代了反复的计算。
由动词短语 look up(“查找、查阅”)+ table(“表格”)组合而成,字面意思就是“用来查的表”。在计算机领域中,这个说法随着“用表代算”(用预先列好的对应关系来节省计算时间)的思路而普及。