npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcktsp

v0.0.9

Published

tsp和分堆算法js版本

Readme

tsp readme

这里是针对扩展的path数据结构的tsp, 简单地说, 有起点, 终点, 以及可见点的概念的tsp核心算法.

2019-05-25
  • 3:12pm
    • 统合数据结构. 放到uds-core里面.
2019-05-24
  • 10:48am
    • 遍历算法, 开始完善遍历算法.
    • 构造一个比较真实的path.
  • 11:35am
    • 生成类算法因为调整困难, 所以不适合时间窗方案.
      • 最远插入法.
      • 生成树法.
    • 尝试类算法更适合时间窗.
      • 遍历算法. 目前正在实现.
      • 蚁群, 只能一个司机一个司机的搞, 这个不适合. 所有司机都在一起, 他的效率就堪忧了.
      • 线性规划, 可以一堆司机一起玩, 这个合适了.
      • 所有司机机一字排开. 所有订单也是, 计算出一个总长度, 然后, 进行交换. 拿更短的长度.
    • 多起点, 多终点算法适合
    • 单起点, 单终点算法不适合
  • 2:16pm
    • 线性规划
      • 有一个基础的路径序列, 然后, 一堆点队列数据进行交换.
      • 这个基础队列是所有司机首尾相连构成的.
  • 10:35pm
    • 基本调通了, 16个点貌似太多了, 明天测一下5个点吧.
2019-05-24之前

顺序:

  • 遍历
  • 最远插入法
  • 最小生成树
  • 线性规划