IS THERE ANY ICSE CLASS10 STUDENT?
WHAT IS THE DIFFERENCE BETWEEN SEARCHING AND SORTING?
I NEED CLEAR ANSWERS!!✌
WITH FULL EXPLAINATION!!!
GIVE FAST...
URGENT..
umairkamran1234:
but
Answers
Answered by
5
Searching:
This is the process by which one searches the group of elements for the desired element. There are different methods of searching but let us deal two popular methods of searching and they are linear search and binary search.
Sorting:
This is the operation of arranging the elements of a table into some sequential order according to ordering criteria. The sort is performed according to the key value of each of the elements. Depending on the structure of the key, elements can be sorted numerically, alphabetically or alphanumerically. For example in numerical sorting, the elements are arranged in ascending or descending order according to the numerical value of each of the elements.
This is the process by which one searches the group of elements for the desired element. There are different methods of searching but let us deal two popular methods of searching and they are linear search and binary search.
Sorting:
This is the operation of arranging the elements of a table into some sequential order according to ordering criteria. The sort is performed according to the key value of each of the elements. Depending on the structure of the key, elements can be sorted numerically, alphabetically or alphanumerically. For example in numerical sorting, the elements are arranged in ascending or descending order according to the numerical value of each of the elements.
Answered by
1
ᴛʜᴇ ᴅɪғғᴇʀᴇɴᴄᴇs ʙᴇᴛᴡᴇᴇɴ sᴏʀᴛɪɴɢ ᴀɴᴅ sᴇᴀʀᴄʜɪɴɢ ᴀʀᴇ :-
1. ɪɴ sᴇᴀʀᴄʜɪɴɢ, ᴀ ᴄᴇʀᴛᴀɪɴ ᴀʀʀᴀʏ ɪs ᴛᴏ ʙᴇ sᴇᴀʀᴄʜᴇᴅ ғᴏʀ ᴡʜᴇʀᴇᴀs ɪɴ sᴏʀᴛɪɴɢ ᴛʜᴇ ᴍᴇᴍʙᴇʀs ᴏғ ᴛʜᴇ ᴀʀʀᴀʏ ᴀʀᴇ ᴛᴏ ʙᴇ sᴏʀᴛᴇᴅ ɪɴ ᴀ ᴘᴀʀᴛɪᴄᴜʟᴀʀ ᴏʀᴅᴇʀ, ɪ.ᴇ. ᴅᴇsᴄᴇɴᴅɪɴɢ ᴏʀ ᴀsᴄᴇɴᴅɪɴɢ ᴏʀᴅᴇʀ.
2. sᴇᴀʀᴄʜɪɴɢ ʀᴇᴛᴜʀɴs ᴛʜᴇ ᴘᴏsɪᴛɪᴏɴ ᴏғ ᴛʜᴇ sᴇᴀʀᴄʜᴇᴅ ᴀʀʀᴀʏ ᴡʜɪʟᴇ sᴏʀᴛɪɴɢ ʀᴇᴛᴜʀɴs ᴀɴ ᴀʀʀᴀʏ ᴡɪᴛʜ ᴛʜᴇ ᴇʟᴇᴍᴇɴᴛs ᴀʀʀᴀɴɢᴇᴅ ɪɴ ᴀsᴄᴇɴᴅɪɴɢ ᴏʀ ᴅᴇsᴄᴇɴᴅɪɴɢ ᴏʀᴅᴇʀ.
ʜᴏᴘᴇ ɪᴛ ʜᴇʟᴘs^^
▁ ▂ ▄ ▅ ▆ ▇ █Thanks █ ▇ ▆ ▅ ▄ ▂ ▁
Similar questions
Social Sciences,
6 months ago
Social Sciences,
6 months ago
Biology,
6 months ago
Math,
1 year ago
English,
1 year ago