SlideShare a Scribd company logo
1 of 1
Download to read offline
could you please answer the all questions in C langauge In your own words, what is a data
structure? If an application requires the following kinds of questions answered: What item is at
position n? Is item x in the list? What is the last item in the list? Is an array good choice for the
underlying structure in the application? Explain. Provide an example application for which a list
is appropriate. Please be sure to provide details with your application.
Solution
Question 1:
A data structure is a particular way of organizing data in a computer so that it can be used
efficiently.
Question 2:
In array storing a data and it can be access randomly array provide random access mechanism.
(a) so it means we have access what item at position n like array[n] or base_address+size*n we
can access the element.
(b) we can search what item present in array list using sequential access of array element
(c) you have directly jump last position of array if you know the size of array array[last] means
we have access last element of array.
Array is good for searching and access the element because we access the array in constant time
but other data Structure we can't access a data in constant time so for access a element then
array is best storing technique Array provide Random access mechanism to access the array in
constant time but array not for good to insertion and deletion of element. if we want to insert a
element in middle of array then you unnecessary shift the element of array but in case of link list
there is no need of shifting a element in this case just you break two link and add two link then
added Data structure is a way of storing and organizing data in a computer so that it can be use
efficiently That means data , a data structure is a specialized format for organizing and storing a
data. basically data structure two types 1 Linear data structure an d Non linear data structure
Linear data structures: Element are access in sequential order example array ,linklist...etc.
Non_linear Data structure Element are access and store in non-linear order like Graph and tree.
Question 3:
The application in which linked list is mostly used and is appropriate is trees and graphs which is
mostly used in our real life scenarios.

More Related Content

Similar to could you please answer the all questions in C langauge In your own .pdf

DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)ShrushtiGole
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1AzharIqbal710687
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESsuthi
 
Data structure & algorithms introduction
Data structure & algorithms introductionData structure & algorithms introduction
Data structure & algorithms introductionSugandh Wafai
 
Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data StructureJazz Jinia Bhowmik
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)Abbott
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Tutort Academy
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresresamplopsurat
 
Data structure lecture 2
Data structure lecture 2Data structure lecture 2
Data structure lecture 2Abbott
 
ppt on arrays in c programming language.pptx
ppt on arrays in c programming language.pptxppt on arrays in c programming language.pptx
ppt on arrays in c programming language.pptxAmanRai352102
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation Anil Kumar Prajapati
 

Similar to could you please answer the all questions in C langauge In your own .pdf (20)

Chapter 1
Chapter 1Chapter 1
Chapter 1
 
M v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notesM v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notes
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1
 
DSA - Copy.pptx
DSA - Copy.pptxDSA - Copy.pptx
DSA - Copy.pptx
 
Ch1
Ch1Ch1
Ch1
 
DATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTESDATA STRUCTURES - SHORT NOTES
DATA STRUCTURES - SHORT NOTES
 
Data structure & algorithms introduction
Data structure & algorithms introductionData structure & algorithms introduction
Data structure & algorithms introduction
 
UNIT II.docx
UNIT II.docxUNIT II.docx
UNIT II.docx
 
Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data Structure
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)
 
CSE 443 (1).pptx
CSE 443 (1).pptxCSE 443 (1).pptx
CSE 443 (1).pptx
 
Data structure
Data structureData structure
Data structure
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...
 
Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresres
 
Data structure lecture 2
Data structure lecture 2Data structure lecture 2
Data structure lecture 2
 
ppt on arrays in c programming language.pptx
ppt on arrays in c programming language.pptxppt on arrays in c programming language.pptx
ppt on arrays in c programming language.pptx
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation
 

More from fabmallkochi

Establish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdf
Establish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdfEstablish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdf
Establish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdffabmallkochi
 
Discuss the requirements for developing a Security Education, Tranin.pdf
Discuss the requirements for developing a Security Education, Tranin.pdfDiscuss the requirements for developing a Security Education, Tranin.pdf
Discuss the requirements for developing a Security Education, Tranin.pdffabmallkochi
 
Determine whether or not the vectors are linearly dependent. Determi.pdf
Determine whether or not the vectors are linearly dependent. Determi.pdfDetermine whether or not the vectors are linearly dependent. Determi.pdf
Determine whether or not the vectors are linearly dependent. Determi.pdffabmallkochi
 
DBA1. Provide five reasons for creating a conceptual data model..pdf
DBA1. Provide five reasons for creating a conceptual data model..pdfDBA1. Provide five reasons for creating a conceptual data model..pdf
DBA1. Provide five reasons for creating a conceptual data model..pdffabmallkochi
 
By using MIMO technique, the throughput can be increased greatly wit.pdf
By using MIMO technique, the throughput can be increased greatly wit.pdfBy using MIMO technique, the throughput can be increased greatly wit.pdf
By using MIMO technique, the throughput can be increased greatly wit.pdffabmallkochi
 
Between 1840 and 1850, the United States gained one-third more land .pdf
Between 1840 and 1850, the United States gained one-third more land .pdfBetween 1840 and 1850, the United States gained one-third more land .pdf
Between 1840 and 1850, the United States gained one-third more land .pdffabmallkochi
 
An ethic of virtue implies that moral relativism is correct, while.pdf
An ethic of virtue implies that moral relativism is correct, while.pdfAn ethic of virtue implies that moral relativism is correct, while.pdf
An ethic of virtue implies that moral relativism is correct, while.pdffabmallkochi
 
A survey of large Latin American firms showed that many have expande.pdf
A survey of large Latin American firms showed that many have expande.pdfA survey of large Latin American firms showed that many have expande.pdf
A survey of large Latin American firms showed that many have expande.pdffabmallkochi
 
April 18, 2018, Lora and Andrew Buck come to your law office for an .pdf
April 18, 2018, Lora and Andrew Buck come to your law office for an .pdfApril 18, 2018, Lora and Andrew Buck come to your law office for an .pdf
April 18, 2018, Lora and Andrew Buck come to your law office for an .pdffabmallkochi
 
4. Which pair of elements has the smaller element listed first (a) A.pdf
4. Which pair of elements has the smaller element listed first (a) A.pdf4. Which pair of elements has the smaller element listed first (a) A.pdf
4. Which pair of elements has the smaller element listed first (a) A.pdffabmallkochi
 
6. Compare the Populist and Progressive movements. Critically analy.pdf
6. Compare the Populist and Progressive movements. Critically analy.pdf6. Compare the Populist and Progressive movements. Critically analy.pdf
6. Compare the Populist and Progressive movements. Critically analy.pdffabmallkochi
 
Why do we believe galaxy clusters are rich in dark matter What is b.pdf
Why do we believe galaxy clusters are rich in dark matter  What is b.pdfWhy do we believe galaxy clusters are rich in dark matter  What is b.pdf
Why do we believe galaxy clusters are rich in dark matter What is b.pdffabmallkochi
 
Write a C code to perform the following tasks In main Define an arr.pdf
Write a C code to perform the following tasks In main Define an arr.pdfWrite a C code to perform the following tasks In main Define an arr.pdf
Write a C code to perform the following tasks In main Define an arr.pdffabmallkochi
 
Which of the following is trueThe definition of tool is too variabl.pdf
Which of the following is trueThe definition of tool is too variabl.pdfWhich of the following is trueThe definition of tool is too variabl.pdf
Which of the following is trueThe definition of tool is too variabl.pdffabmallkochi
 
Who are we as a country With all the demographic changes currently .pdf
Who are we as a country With all the demographic changes currently .pdfWho are we as a country With all the demographic changes currently .pdf
Who are we as a country With all the demographic changes currently .pdffabmallkochi
 
Using Theodore Levitt’s central thesis of The Globalization of mar.pdf
Using Theodore Levitt’s central thesis of The Globalization of mar.pdfUsing Theodore Levitt’s central thesis of The Globalization of mar.pdf
Using Theodore Levitt’s central thesis of The Globalization of mar.pdffabmallkochi
 
1. Give five reasons why a person might want to extract DNA from cel.pdf
1. Give five reasons why a person might want to extract DNA from cel.pdf1. Give five reasons why a person might want to extract DNA from cel.pdf
1. Give five reasons why a person might want to extract DNA from cel.pdffabmallkochi
 
Transfer taxes are handled under which tax topics Transfer ta.pdf
Transfer taxes are handled under which tax topics  Transfer ta.pdfTransfer taxes are handled under which tax topics  Transfer ta.pdf
Transfer taxes are handled under which tax topics Transfer ta.pdffabmallkochi
 
This project creates a custom linked list structure. It serves.pdf
This project creates a custom linked list structure.      It serves.pdfThis project creates a custom linked list structure.      It serves.pdf
This project creates a custom linked list structure. It serves.pdffabmallkochi
 
The researchers found RNA, but that was not enough to conclude that t.pdf
The researchers found RNA, but that was not enough to conclude that t.pdfThe researchers found RNA, but that was not enough to conclude that t.pdf
The researchers found RNA, but that was not enough to conclude that t.pdffabmallkochi
 

More from fabmallkochi (20)

Establish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdf
Establish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdfEstablish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdf
Establish the identity sin (2theta)[costheta+cos(3theta)]=-cos(2the.pdf
 
Discuss the requirements for developing a Security Education, Tranin.pdf
Discuss the requirements for developing a Security Education, Tranin.pdfDiscuss the requirements for developing a Security Education, Tranin.pdf
Discuss the requirements for developing a Security Education, Tranin.pdf
 
Determine whether or not the vectors are linearly dependent. Determi.pdf
Determine whether or not the vectors are linearly dependent. Determi.pdfDetermine whether or not the vectors are linearly dependent. Determi.pdf
Determine whether or not the vectors are linearly dependent. Determi.pdf
 
DBA1. Provide five reasons for creating a conceptual data model..pdf
DBA1. Provide five reasons for creating a conceptual data model..pdfDBA1. Provide five reasons for creating a conceptual data model..pdf
DBA1. Provide five reasons for creating a conceptual data model..pdf
 
By using MIMO technique, the throughput can be increased greatly wit.pdf
By using MIMO technique, the throughput can be increased greatly wit.pdfBy using MIMO technique, the throughput can be increased greatly wit.pdf
By using MIMO technique, the throughput can be increased greatly wit.pdf
 
Between 1840 and 1850, the United States gained one-third more land .pdf
Between 1840 and 1850, the United States gained one-third more land .pdfBetween 1840 and 1850, the United States gained one-third more land .pdf
Between 1840 and 1850, the United States gained one-third more land .pdf
 
An ethic of virtue implies that moral relativism is correct, while.pdf
An ethic of virtue implies that moral relativism is correct, while.pdfAn ethic of virtue implies that moral relativism is correct, while.pdf
An ethic of virtue implies that moral relativism is correct, while.pdf
 
A survey of large Latin American firms showed that many have expande.pdf
A survey of large Latin American firms showed that many have expande.pdfA survey of large Latin American firms showed that many have expande.pdf
A survey of large Latin American firms showed that many have expande.pdf
 
April 18, 2018, Lora and Andrew Buck come to your law office for an .pdf
April 18, 2018, Lora and Andrew Buck come to your law office for an .pdfApril 18, 2018, Lora and Andrew Buck come to your law office for an .pdf
April 18, 2018, Lora and Andrew Buck come to your law office for an .pdf
 
4. Which pair of elements has the smaller element listed first (a) A.pdf
4. Which pair of elements has the smaller element listed first (a) A.pdf4. Which pair of elements has the smaller element listed first (a) A.pdf
4. Which pair of elements has the smaller element listed first (a) A.pdf
 
6. Compare the Populist and Progressive movements. Critically analy.pdf
6. Compare the Populist and Progressive movements. Critically analy.pdf6. Compare the Populist and Progressive movements. Critically analy.pdf
6. Compare the Populist and Progressive movements. Critically analy.pdf
 
Why do we believe galaxy clusters are rich in dark matter What is b.pdf
Why do we believe galaxy clusters are rich in dark matter  What is b.pdfWhy do we believe galaxy clusters are rich in dark matter  What is b.pdf
Why do we believe galaxy clusters are rich in dark matter What is b.pdf
 
Write a C code to perform the following tasks In main Define an arr.pdf
Write a C code to perform the following tasks In main Define an arr.pdfWrite a C code to perform the following tasks In main Define an arr.pdf
Write a C code to perform the following tasks In main Define an arr.pdf
 
Which of the following is trueThe definition of tool is too variabl.pdf
Which of the following is trueThe definition of tool is too variabl.pdfWhich of the following is trueThe definition of tool is too variabl.pdf
Which of the following is trueThe definition of tool is too variabl.pdf
 
Who are we as a country With all the demographic changes currently .pdf
Who are we as a country With all the demographic changes currently .pdfWho are we as a country With all the demographic changes currently .pdf
Who are we as a country With all the demographic changes currently .pdf
 
Using Theodore Levitt’s central thesis of The Globalization of mar.pdf
Using Theodore Levitt’s central thesis of The Globalization of mar.pdfUsing Theodore Levitt’s central thesis of The Globalization of mar.pdf
Using Theodore Levitt’s central thesis of The Globalization of mar.pdf
 
1. Give five reasons why a person might want to extract DNA from cel.pdf
1. Give five reasons why a person might want to extract DNA from cel.pdf1. Give five reasons why a person might want to extract DNA from cel.pdf
1. Give five reasons why a person might want to extract DNA from cel.pdf
 
Transfer taxes are handled under which tax topics Transfer ta.pdf
Transfer taxes are handled under which tax topics  Transfer ta.pdfTransfer taxes are handled under which tax topics  Transfer ta.pdf
Transfer taxes are handled under which tax topics Transfer ta.pdf
 
This project creates a custom linked list structure. It serves.pdf
This project creates a custom linked list structure.      It serves.pdfThis project creates a custom linked list structure.      It serves.pdf
This project creates a custom linked list structure. It serves.pdf
 
The researchers found RNA, but that was not enough to conclude that t.pdf
The researchers found RNA, but that was not enough to conclude that t.pdfThe researchers found RNA, but that was not enough to conclude that t.pdf
The researchers found RNA, but that was not enough to conclude that t.pdf
 

Recently uploaded

Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 

Recently uploaded (20)

Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

could you please answer the all questions in C langauge In your own .pdf

  • 1. could you please answer the all questions in C langauge In your own words, what is a data structure? If an application requires the following kinds of questions answered: What item is at position n? Is item x in the list? What is the last item in the list? Is an array good choice for the underlying structure in the application? Explain. Provide an example application for which a list is appropriate. Please be sure to provide details with your application. Solution Question 1: A data structure is a particular way of organizing data in a computer so that it can be used efficiently. Question 2: In array storing a data and it can be access randomly array provide random access mechanism. (a) so it means we have access what item at position n like array[n] or base_address+size*n we can access the element. (b) we can search what item present in array list using sequential access of array element (c) you have directly jump last position of array if you know the size of array array[last] means we have access last element of array. Array is good for searching and access the element because we access the array in constant time but other data Structure we can't access a data in constant time so for access a element then array is best storing technique Array provide Random access mechanism to access the array in constant time but array not for good to insertion and deletion of element. if we want to insert a element in middle of array then you unnecessary shift the element of array but in case of link list there is no need of shifting a element in this case just you break two link and add two link then added Data structure is a way of storing and organizing data in a computer so that it can be use efficiently That means data , a data structure is a specialized format for organizing and storing a data. basically data structure two types 1 Linear data structure an d Non linear data structure Linear data structures: Element are access in sequential order example array ,linklist...etc. Non_linear Data structure Element are access and store in non-linear order like Graph and tree. Question 3: The application in which linked list is mostly used and is appropriate is trees and graphs which is mostly used in our real life scenarios.