Giter VIP home page Giter VIP logo

surdebmalya / comparison-graph-between-linear-search-and-binary-search Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 959 KB

Write two search functions linear search and binary search. Create a random array of size n, perform m searches on the array, where the element to be searched is also determined randomly. Calculate the no. of comparisons your function makes. Vary the value of m from m=1,1000, 5000, 8000, 10000. Plot the graph m vs no. of comparisons for both linear and binary search on the same graph. For binary search also consider the number of comparisons of your sorting algorithm on the array which you use only once. Make 3 search graphs for n=1000, 5000, 10000.

Python 100.00%

comparison-graph-between-linear-search-and-binary-search's Introduction

Hi there ๐Ÿ‘‹

๐Ÿš€ About Me

๐Ÿ‘จโ€๐ŸŽ“ I am Debmalya Sur, pursuing my Masters in Computer Science & Engineering (CSE) from Indian Institute of Technology (IIT) Dhanbad.

โœจ I love to explore mathematics and always try to build a strong connection between theoretical and practical scenarios in this digital era.

๐Ÿ“– In my free time, I solve puzzles and the reasoning part of different kind of entrance exams, I also like to take part in any kind of communication and also like to play games when I need instant boost!

๐ŸŽฏ Areas of Interest

  • Logics of Computer Science
  • Mathematics
  • Brains and Human Psychology

๐Ÿ’ฌ Connect with me

linked-in gmail github

comparison-graph-between-linear-search-and-binary-search's People

Contributors

surdebmalya avatar

Watchers

 avatar  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.