Pages

Thursday, December 1, 2022

Algorithms Designs & Data Structures. Which one suits your needs?

 

    Welcome back! Now that you have installed the latest version of Java Eclipse IDE console onto your PC, let us look at what is next. If you want to become the next high demanded programmer in the programming industry, you must utterly understand what a JavaScript is and for what is it used. 97% of websites around the world uses JavaScript and if you plan to specialize in front-end, back-end, or full-stack development to create dynamic and interactive web content like applications, gaming software, and browsers like the popular Google, Mozilla (Firefox) and Microsoft Edge.

    Now that you got a brief incite of JavaScript, the next is getting into the topic and understanding of how to apply algorithmic design & data structure techniques in developing structure program in Java programming language. Algorithm design are mathematical methods that are implemented into defines instructions that is used to be executed in a specific order to get the desired output. Algorithm instructions consist of search, sort, insert, upgrade, and delete if needed be. In other words, it tells software and hardware what to do. Now that’s where A data structure comes into play. It is a specialized format for organizing, processing, retrieving, and storing data. Data Structure is a way of collecting and organizing data in such a way that we can perform operations on these data in an effective way. Data Structures is about rendering data elements in terms of some relationship, for better organization and storage (Studytonight.com).

Are some algorithms and data structure designs better than others?

    The answer to that depends on the speed and size (storage capacity) of components inside a computer and peripherals attached (via port, wireless, or Bluetooth connections). A good algorithm is correct, but a great algorithm is both correct and efficient. The most efficient algorithm is one that takes the least amount of execution time and memory usage possible while still yielding a correct answer (Fox, Pamela).

Why one design would be used before another method would be used?

    There are several diverse types of data structures. Some of the popular types are Array, Binary Tree, Linear, Stack, and Linked List to name a few but each requires a certain amount of space for each data item it stores, a certain amount of time to perform a single essential operation, and a certain amount of programming effort to perform to the end user specified desires. Careful research, analyzing and most importantly the cost and benefits for each project/task is needed in order to determine which design is a better fit rather than just shooting from the hip of popularity.

    If I were to apply algorithmic design and data structure techniques in a developing structured program, I would first conduct the before mentioned research and analytic approach along with a suitable programming language/IDE that will be able to properly execute the algorithm instructions that I desire. Choosing the right design technique for the algorithm is also essential to process the program with efficiency. Selecting a proper design technique for algorithms is a complex but important task. The following is some of the main algorithm design techniques: Brute-force or exhaustive search, Randomized Algorithm, Divide and Conquer, Greedy Algorithms, Backtracking, Dynamic Programming Branch and Bound Algorithm. Each task has its own unique process that may be resolved from different approaches, you just need to find the right one that suits the need. 

Reference:

Studytonight.com Introduction to Data Structures and Algorithms. https://www.studytonight.com/data-structures/introduction-to-data-structures

 Fox, Pamela. Measuring an algorithm's efficiency. https://www.khanacademy.org/computing/ap-computer-science-principles/algorithms-101/evaluating-algorithms/a/measuring-an-algorithms-efficiency

 WLU Laurier (2019). Algorithm design techniques How is algorithm design applied? Online | 100% Online. Flexible, career-ready degrees. https://online.wlu.ca/news/2019/02/12/how-algorithm-design-applied

 

No comments:

Post a Comment