Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8149157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:47:33+00:00 2026-06-06T14:47:33+00:00

I have a task to develop an electronic phone book in which i have

  • 0

I have a task to develop an electronic phone book in which i have to store names and phone numbers of employees of a company. The data structures available to you are linked list and Binary Search Tree (BST) and i have to choose best supported data structure for my project. Moreover, while selecting any data structure, you also have to keep in consideration insertion, deletion and search operations, because, the company can hire some new employees, search for an employee’s phone number and some old employees can also leave this company. Discuss which data structure do you think would be more suitable for the above discussed scenario. Also discuss the reason why would you prefer this data structure over the other?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:47:35+00:00Added an answer on June 6, 2026 at 2:47 pm

    BST would be better.
    because…

    1. Searching which is the most frequently used function in a phonebook is faster in BST than in linked list.

    2. Insertion takes O(log n) time in average case. In case of linked list if a new node is to be inserted finding the correct location takes O(n) time which is again slower than BST.

    3. Deletion : worst case it requires time proportional to the height of the tree. But in case of linked list is takes constant order time. (This is the only case where linked list is better.)

    Thus on an average linked list is better.

    P.S. : I am assuming you want to store the phonebook in a sorted manner.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a problem. Developers have some kind of a task (develop certain feature), which
i have task which takes a parameter and has three modes of results Example
i am new in blackberry development. and i have task to develop the application
My current task is to develop a software for measurement and testing purposes which
i have to develop windows service which will copy files to different servers. So
I have a task to develop the application related to address and access the
I am quite new to web development and have a task to develop a
Used to develop Portlets and JPS's, so have a dilemma. task: display <h:dataTable> only
I have a main task (to develop a library) that I split up to
I have a task which is to run a batch file in IIS.. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.