Computer Science, asked by domtse4616, 1 year ago

Difference between algorithms and data stucture

Answers

Answered by rohit3789
0
A data structure is the way you define a certain object in a program language. If you define a data structure for a contact in a contact list, you would have members of that data structure such as name, company, address, phone number, etc. The data structure is defined by what you need the program to keep track of.

An algorithm is a specific way of programming a task to make it work on the data you have. For example, there are many algorithms to sort data in a database of information. An algorithm is a specific way that the programmer writes a program to process the information. Algorithms are unique in the way that the program runs and can be measured by their efficiency in processing the data. The metrics are evaluated by how many computer instructions it takes to calculate the results.
Similar questions