Coder Social home page Coder Social logo

introduction_to_algorithms's Introduction

All stuff contained is user-implemented algorithms depicted in the book Introduction to Algorithms, and most of which can be considered as candidates for solutions to exercises

For any other solutions to exercise, please see at http://sdrv.ms/17TUmTY

##Chapter 5: Probabilistic Analysis and Randomized Algorithms

  • RandomEx. ch5.1 exer 2 implement a generator RANDOM[a,b] by only using RANDOM[0,1]

  • PermutingBySorting. randomize an array via generating and sorting priorities associating with elements in the array.

  • PermuteInPlace. randomize an array in place.

  • RandomSample. produce a m-subset from S={1,2,3,..,n}.

  • RandSearch. ch5 Problem 5-2 an interesting search algorithm.

##Chapter 6: Heapsort

  • MaxHeapify. keep heap conforming to max-heap property.

  • MaxHeapify_Iter. iterative implementation.

  • BuildHeap. build a max-heap on an array.

  • Heapsort heapsort algorithm.

##Chapter 7: Quicksort

  • Quicksort and Partition naive implementation for quicksort and its inherent partition routine.

  • RandomPartition randomized version.

  • QSortWithInsertion an optimizatio implementation that binds insertion sort and quicksort.

##Chapter 8: Sorting in Linear Time

  • CountingSort counting sort implementation.

  • RadixSort and UnderlyingSort a radix sort implementation for 32-bit non-negative integers.

  • BucketSort bucket sort implementation.

  • InPlaceCountingSort and _InPlaceCountingSort a general in-place counting sort implementation (also need O(k) extra storage) and a special variant of O(1) in-place counting sort.

##Chapter 9: Medians and Order Statistics

  • FindMaxandMin find both max and min at same time using least comparisons

  • RandomizedSelecton and RandomizedSelectonIter k-th smallest problem implementation

##Chapter 10: Elementary Data Structures

  • class Deque a quick-and-simple deque implementation

  • a set of operations based on singly linked list

  • class XORQueue a queue based on xor-linked-list.

introduction_to_algorithms's People

Contributors

kingsamchen avatar

Watchers

James Cloos avatar noobird avatar

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.