GithubHelp home page GithubHelp logo

lookup-of-data-structure's Introduction

lookup-of-data-structure

Data structure | Lookup

Keywords:sequential search binsearch sequence list keywords

Language: C

The repository includes:

  • 1 source file
  • 1 input_txt (for testing the source code)
  • 1 demmand for the code (in Chinese; complete requirement for the tasks)

TASK concerning Lookup :

  • Write an algorithm:

  • 1.create a sequence list according to the keyword

  • 2.look up the designated keyword, using:
    sequential search
    binserach

  • 3.output the position of the keyword and comparison times


Preview:

#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
#define Max_num 100
int create_list(int s1[], int s2[], int n, FILE*fp, FILE*fp2);
void post_error(FILE *fp2);
void post_null(FILE *fp2);
int bisearch (int s[], int x, int low, int high, int *pCount);
int seqsearch (int s[], int x,int high, int *pCount);

Say thanks to ...

This project is my assignment for the course Data Structure when I was a first-year student at ๐Ÿ“˜ the Department of Electrical Engineering at South China University of Technology.
I really appreciate the guidance and help from my teacher Dr. Qin, along with my classmates.:bowtie:

Please feel free to give suggestions and comments!

lookup-of-data-structure's People

Contributors

emilykeer avatar

Watchers

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