• 请不要在回答技术问题时复制粘贴 AI 生成的内容
basncy
V2EX  ›  程序员

[算法]请教一下为什么需要这行代码,数据准备.

  •  
  •   basncy · Jun 16, 2022 · 2145 views
    This topic created in 1437 days ago, the information mentioned may be changed or developed.

    https://github.com/dwave-examples/job-shop-scheduling-cqm/blob/8c2161dc52a73ec2232631416f9ea46739ec997b/data.py#L27

    已经有了 self.task_machine[(j, i)] = machine 这层关系 添加此行代码 machine_task[(j, machine)] = i 的目的干什么?

    5 replies    2022-06-17 21:59:52 +08:00
    raycool
        1
    raycool  
       Jun 16, 2022
    空间换时间?
    GeruzoniAnsasu
        2
    GeruzoniAnsasu  
       Jun 16, 2022
    盲猜倒排索引
    dayeye2006199
        3
    dayeye2006199  
       Jun 16, 2022 via Android
    倒排
    Saxton
        4
    Saxton  
       Jun 17, 2022
    鉴定完毕 倒排索引 下次直接发空气
    basncy
        5
    basncy  
    OP
       Jun 17, 2022
    可能我问错地方了.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   884 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 37ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.