Git Product home page Git Product logo

bestenchseq's Issues

关于目前的铁砧最优算法

其实当前使用的算法(BV1Yz4y1U7c1)并不是最优,目前大概还没有一个可以接受任意给定物品的通用铁砧算法。

下面是引用过来的评论

保护4-lv4 耐久3-lv3 经验修补-lv2 为例
按照当前的算法 结合顺序是 (0+2) + (4+3) 一共消耗 14 级经验。
逐本敲附魔时 ((0+4) + 3) + 2 只有 13 级的消耗。
稍微改变下附魔顺序 (0+4) + (3+2) 也是 13 级,且没有增加次数惩罚。

从第一步的贪心开始,将低消耗附魔与物品优先组合,就决定了后续高消耗附魔被多次计算。

再举一个极端一点例子,1.18 满配的鞋子:灵魂疾行3、荆棘3、摔落保护4、深海3、保护4、耐久3、经验修补
按照目前的算法需要消耗 83 级、而 wiki 给的例子虽然不是最优,但也才只有68级。
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.