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

  • SEARCH
  • Home
  • 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 7429157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:55:28+00:00 2026-05-29T08:55:28+00:00

Hi Guys I don’t quite understand the following tutorial question: write a ADT sorted

  • 0

Hi Guys I don’t quite understand the following tutorial question:
write a ADT sorted list, The insertion, deletion and retrieval operations must be implemented recursively. [Note: The recursive requirement could be achieved by implementing a recursive search function that is used within the insertion/deletion or retrieval methods.

How can you implement one method that does 3 things?
I know that the professor is asking to implement a search method, but inserting deleting retrieving requires different operations.

thanks

  • 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-05-29T08:55:29+00:00Added an answer on May 29, 2026 at 8:55 am

    Your professor is saying that you can use the search method as part of the way you achieve insert or delete. Abstractly, you have three tasks:

    search(x):  find where x should appear in the sorted list, then return it
    insert(x):  find where x should appear in the sorted list, then put it there
    delete(x):  find where x should appear in the sorted list, then remove it
    

    The find where x should appear in the sorted list part of both the insert and delete methods could be achieved using your implementation of search.

    You professor isn’t expecting you to write one method that does all three things, but instead is giving you the hint that your search method can be used inside your insert and delete methods.

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

Sidebar

Related Questions

Another synchronization question...I hope you guys don't get annoyed ;) Assume the following scenario:
I know that this is a simple question for PHP guys but I don't
I am sure this is a simple question for you guys but I don't
I just don't understand why some guys declare the methods in the .m file.
Hope you guys don't mind me asking this question, but I find myself at
Hey guys, I don't know if this question has been asked yet but imagine
So I know that if you guys don't like my question you are going
Guys, I HAVE tried reading tons of stuff about EJB. And I don't get
I don't know about you guys but at least I expected that f1 would
Hey guys. I don't know much JS, but I wanted to do some quick

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.