zoukankan      html  css  js  c++  java
  • 《OD学算法》常用算法集合

    1. 排序

    (1)冒泡

    (2)选择

    (3)插入

    (4)归并

    2. 位运算

    Bitmask provide an efficient way to manipulate a small set of Booleans. By using bitwise operations, Boolean flags can be checked, turned on (or turned off) easily and quickly. It can be used in various algorithms such as the Dynamic Programming solution for Travelling Salesman Problem to speed up crucial (small) set-based operations.

    View the visualisation here!
    The top row describes the bits of the input integer S.
    The middle row describes the mask bits j that will be applied to S together with the associated bitwise operation.
    The last row describes the result New S.

    All available Bitmask operations are shown here. Select an action and provide the necessary input, and the action will be animated in the visualisation area.

    As the action is being carried out, each step will be described in the status panel.

    You can also follow the pseudocode highlights to trace the algorithm.

    Control the animation with the player controls! Keyboard shortcuts are:

    Spacebar: play/pause/replay

    Left/right arrows: step backward/step forward
    -/+: decrease/increase speed

    Return to 'Exploration Mode' to start exploring!

    Note that if you notice any bug in this visualization or if you want to request for a new visualization feature, do not hesitate to drop an email to the project leader: Dr Steven Halim via his email address: stevenhalim at gmail dot com.

    3. 链表

    Linked list is a data structure consisting of a group of vertices which together represent a sequence. Under the simplest form, each vertex is composed of a data and a reference (in other words, a link) to the next vertex in the sequence. In this visualization, we discuss Single Linked List and its two variants: Stack and Queue, and also Doubly Linked List and its variant: Deque.

    4. 哈希表

    5. 二叉堆

    6. 二叉搜索树

    7. 图结构

    8. 并查集

    9. 线段树

    10. 树状数组

    11. 递归树/有向无环图

    12. 图的遍历

    13. 最小生成树

    14. 单源最短路径

    15. 网络流

    16. 二分匹配

    17. 循环查找

    18. 后缀树

    19. 后缀数组

    20. 计算几何

  • 相关阅读:
    网络编程
    面向对象总结
    面象对象编程(选课系统)
    类的魔法方法和部分单例模式
    简易3D开发,ThingJS之大道至简
    ThingJS参与3D众创,一起建设“实体中国”!
    ThingJS:轻松让空间“立起来”,展示你的3D创造力
    一个产品的状态不好?ThingJS来找茬
    ThingJS提供有地理位置的信息弹窗示例
    一次灵感盛宴,ThingJS推出场景Market
  • 原文地址:https://www.cnblogs.com/yeahwell/p/5610819.html
Copyright © 2011-2022 走看看