Giter Site home page Giter Site logo

dpv's Introduction

Solution Manual for Algorithms - S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani

Motivation:
  • Take notes from the chapters.
  • solve chapter problems.
  • Solution for end of chapter exercises.
  • Code problems in python-3
  • Have loads of fun along the way! :)

dpv's People

Contributors

mbhushan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dpv's Issues

1.7

Although I am not completely sure, but the answer should be O(mn) because the loop is called m times but multiplying by 2 shifts the digits of the other number n so it should be O(mn).

A quick check would be to see if m==1 or n==1. O(mn) fits the bill.

There is no such problem with 0.4 .

The complexity should be
sum of O(r^2) log n times (not n times of course) where r is length of number in the matrix in every step. So r varies as (r1, 2r1, 2^2r1, ...) .
We can see that O(r^2) < O(n^2)
Hence we can write the answer
so it gives us the second last option.
For the last option we must do the entire sum which
comes out to be the given ans.

0.1 d

Shouldn't it be both are true?

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.