Found 423 Questions for Algorithms

Difference Between MD5 and SHA1

Kiran Kumar Panigrahi
Updated on 22-Aug-2022 14:26:51
Both MD5 and SHA1 are hashing algorithms. MD5 is simple and fast, but it does not provide good security. SHA1 is complex as compared to MD5 and it provides greater level of security.Read through this article to find out more about these two hashing algorithms and how they are different from each other.What is MD5?MD stands for Message Digest. MD5 is a hashing algorithm that produces a 128-bit hash value.Although MD5 was created with the intention of using it as a cryptographic hash function, it has been discovered to have several flaws. Yet, it is extensively used.MD5 can be used ... Read More

Difference Between Classification and Clustering

AmitDiwan
Updated on 25-Mar-2021 06:03:56
In this post, we will understand the difference between classification and clustering.ClassificationIt is used with supervised learning.It is a process where the input instances are classified based on their respective class labels.It has labels hence there is a need to train and test the dataset to verify the model.It is more complex in comparison to clustering.Examples: Logistic regression, Naive Bayes classifier, Support vector machines.ClusteringIt is used with unsupervised learning.It groups the instances based on how similar they are, without using class labels.It is not needed to train and test the dataset.It is less complex in comparison to classification.Examples: k-means clustering ... Read More

Difference Between Bubble Sort and Selection Sort

AmitDiwan
Updated on 23-Mar-2021 08:34:49
In this post, we will understand the difference between Bubble Sort and Selection SortBubble SortIt is a simple sorting algorithm.It iterates through the list, and compares adjacent pairs of elements to sort them.Based on the adjacent elements, swaps are made.It is efficient in comparison to selection sort.It is slower in comparison to selection sort.It uses item exchanging to swap elements.The elements are repeatedly swapped until all the elements are in the right order.Following is the Bubble Sort AlgorithmAlgorithmbegin BubbleSort(list)    for all elements of list       if list[i] > list[i+1]          swap(list[i], list[i+1]) end if ... Read More

Explain the Difference Between Linear and Non-linear Data Structure

AmitDiwan
Updated on 23-Mar-2021 07:11:07
In this post, we will understand the difference between linear data structure and non-linear data structure.Linear Data StructureThe elements of such a structure are arranged sequentially.Every element can be accessed by traversing through the linear structure.All the elements of a linear structure are at a single level, i.e there is no hierarchy.They are easy to implement and use.They utilize more memory, hence they are not very memory-friendly.The time complexity of linear data structure usually increases when the size of the structure increases.Examples include- list, array, stackThe below shows an example of a list in Python.my_list = [45, 42, 12, 34, ... Read More

Difference Between High-Level Language and Low-Level Language

AmitDiwan
Updated on 02-Mar-2021 06:47:50
Let us first learn about High-level and Low-level language −High-level languageIt can be easily interpreted as well as compiled in comparison to low-level language.It can be considered as a programmer-friendly language.It is easy to understand.It is easy to debug.It is simple in terms of maintenance.It requires a compiler/interpreter to be translated into machine code.It can be run on different platforms.It can be ported from one location to another.It is less memory efficient, i.e it consumes more memory in comparison to low-level languages.Examples of high level languages include C, C++, Java, Python.It is used widely in today's times.Low-level languageIt is also ... Read More

Difference Between Top-down and Bottom-up Parsing

AmitDiwan
Updated on 02-Mar-2021 05:20:41
In this post, we will understand the differences between top down and bottom-up parsing −Top-down parsing and bottom-up parsing are different techniques to parse a tree to reach the beginning of the tree. This can be done in two different methods, which have been discussed below.Top-down ParsingIt is a parsing technique that looks at the highest level of the parse tree initially, and then works its way down to the parse tree.It does this using the rules of grammar.It uses left most derivation.This parsing method tries to determine the left most derivations for an input string.Here, the parsing is done ... Read More

Difference Between Procedural and Non-procedural Language

AmitDiwan
Updated on 02-Mar-2021 05:20:24
In this post, we will understand the differences between procedural and non-procedural languages −Procedural languageThe program code is written in the form of a sequence of instructions.The user would specify what has to be done and how it can be done, i.e the step by step procedure of it.It is considered as a command-driven language.It works with the state of machine.Its semantics are tough in comparison to other paradigms.The size of the program would be large.These steps would be executed in a sequential method.It returns restricted data types and certain allowed values only.The overall efficiency is high.The instructions are written ... Read More

Difference Between Aggregation and Association

AmitDiwan
Updated on 02-Mar-2021 05:19:14
In this post, we will understand the differences between aggregation and association.AssociationIt can be understood as an organization of people that have a common purpose. It also indicates that they consist of a formal structure. It represents a binary relationship between the two objects that describe some kind of activity.It is a relationship between multiple objects.An example would be how consuming healthy food is related not just to a healthy weight, but to good skin, good hair, strength and being active.Association is a relationship between two classes where one class uses the other class.It is not flexible in natureThis indicates ... Read More

Difference Between Full Virtualization and Paravirtualization

AmitDiwan
Updated on 02-Mar-2021 05:17:13
In this post, we will understand the differences between full virtualization and paravirtualizationFull VirtualizationThis process was introduced by IBM in the year 1966. It is considered to be the first software solution for server virtualization. It uses binary translation and a direct approach method.In this, the guest OS is fully isolated using the virtual machine from the virtualization layer and hardware.Examples of full virtualization include Microsoft and Parallels systems.The virtual machine permits the execution of the instructions in addition to running the unmodified OS in a completely isolated method.It is considered to be less secure in comparison to paravirtualization.It uses ... Read More

Difference Between Algorithm and Flowchart

AmitDiwan
Updated on 02-Mar-2021 05:12:01
In this post, let us understand the differences between a flowchart and an algorithm.AlgorithmIt is defined as a sequence of well-defined steps.These steps provide a solution/ a way to solve a problem in hand.It is a systematic, and a logical approach, where the procedure is defined step-wise.It gives the solution to a specific problem.This solution would be translated to machine code, which is then executed by the system to give the relevant output.Many simple operations are combined to help form a more complicated operation, which is performed with ease by the computer.Algorithms can be represented using natural language, flowchart and ... Read More
1 2 3 4 5 6 7 ... 43 Next
Advertisements