首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > Java implementation of耐心的命运

Java implementation of耐心的命运

  • 资源大小:3.82 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 耐心

资 源 简 介

This class is a Java implementation of patience sort. It currently uses a String argument to the processString method and returns a String of the longest increasing subsequence. using Char as the comparison procedure. The class uses Stacks of Stacks and implements the greedy strategy. Patience sorting is a sorting algorithm that yields the longest increasing subsequence. This Java implementation is based entirely on this mathematical model http://www.ams.org/journals/bull/1999-36-04/S0273-0979-99-00796-X/S0273-0979-99-00796-X.pdf Patience sort is an O(n log n )algorithm

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP