Coder Social home page Coder Social logo

clrscode's Introduction

clrscode

CLRS ain't gonna solve itself.

PDF Files:

These contain all sorts of algorithms and mathematical solutions to relevant/irrelevant programs/chapters. Most of the algorithms mentioned in the book have been implemented as below and the solutions to the problems which are not algorithms are contained in these pdf files. For the time being, these are written solutions and I will try to convert them into book format using latex if time permits.

Description

Algorithm Run Time Where
Linear Search O(n) Chapter 2, section 2.1
Insertion Sort O(n^2) Chapter 2, section 2.1
Selection Sort O(n^2) Chapter 2, section 2.2
Maximum Subarray Problem O(n^2) Chapter 4, section 4.1
Maximum Subarray Problem O(n*logn) Chapter 4, section 4.1
Maximum Subarray Problem O(n) Chapter 4, section 4.1
Max Heapify O(logn) Chapter 6, section 6.2
Min Heapify O(logn) Chapter 6, section 6.2
Iterative Max Heapify O(logn) Chapter 6, section 6.2
Build Max Heap O(n*logn) Chapter 6, section 6.3
Partition O(n) Chapter 7, section 7.1
Quick Sort O(n*logn) Chapter 7, section 7.1
Randomised Quick Sort O(n*logn) Chapter 7, section 7.3
Quick Sort with Insertion Sort O(nk + nlog(n/k)) Chapter 7, section 7.4
Quick Sort with median of 3 O(n*logn) Chapter 7, section 7.4
Tail Recursive Quick Sort O(n*logn) Chapter 7, Problem 7-4
Counting Sort O(n+k) Chapter 8, section 8.2
MinMax (3n/2) comparisons Chapter 9, section 9.1
Minimum (n+logn-2) comparisons Chapter 9, section 9.1
Randomised Select O(n) Chapter 9, section 9.2
Deterministic Select O(n) Chapter 9, section 9.3
Stack - Chapter 10, section 10.1
Double Stack - Chapter 10, section 10.1
Queue - Chapter 10, section 10.1
DeQueue - Chapter 10, section 10.1
Queue using 2 Stacks - Chapter 10, section 10.1
Stack using 2 Queues - Chapter 10, section 10.1
Rod Cutting O(n^2) Chapter 15, section 15.1
Rod Cutting (min cuts) O(n^2) Chapter 15, section 15.1
Fibonacci O(n) Chapter 15, section 15.1

Everyone is encouraged to star, watch and fork the repository to contribute.

This is where my motivation comes from.

clrscode's People

Contributors

antidigest avatar evamy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

0000duck

clrscode's Issues

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.