Programming Articles - Page 1282 of 3363

Difference Between B-tree and Binary tree

Kiran Kumar Panigrahi
Updated on 20-Feb-2023 16:14:47

7K+ Views

There are two types of non-linear data structures namely, B-Tree and Binary Tree. These two terms sound similar but they are absolutely different from each other. The most basic difference between a B-Tree and a Binary Tree is that a B-Tree is used for data storage on a disk, whereas a Binary Tree is used for data storage in RAM. Read this article to learn more about B-tree and Binary Tree and how they are different from each other. What is a B-Tree? B-Tree, also called Balanced Sort Tree, is a type of balanced M-way tree. In a B-tree, the ... Read More

Difference Between Link and Association

AmitDiwan
Updated on 23-Mar-2021 08:01:46

13K+ Views

In this post, we will understand the difference between Link and Association.LinkIt can be understood as the physical connection between objects.It helps tell about the relationship among objects.It is represented using line segment between objects.They can’t be referenced.It is used in UML designs.AssociationIt is a specification about the collection of links.The connections are related to classes.It is a general relationship between classes.They are implemented using programming languages as a reference model.It shows connections between classes using line segments.It is used in UML designs.

Difference Between Friend Function and Friend Class

AmitDiwan
Updated on 23-Mar-2021 08:01:22

6K+ Views

In this post, we will understand the difference between Friend function and Friend class.Friend FunctionIt is usually used with operator overloading operation.It is used with the ‘friend’ keyword.It helps give a non-member function the access to the private members of the class.It has to be declared before it is used.It is used to access private and protected members of the class.It can be a global function or a function in another class.Exampleclass Node {    private:    int val;    Node* next;    // Other members of Node Class //    friend int LinkedList::search();    // Only search method ... Read More

Difference Between DDA and Bresenham Line Drawing algorithm

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 12:19:02

16K+ Views

The realm of computer graphics is an expansive one that is always undergoing development. It involves a variety of concepts and ideas, of which "drawing a line" is the most fundamental tasks involved in working with graphical media.There are two algorithmic rules that are followed while drawing a line on the screen. They are DDA (Digital Differential Analyser) algorithmic rule and Bresenham line algorithm.Both the DDA and Bresenham's algorithm are examples of computational procedures that can be utilised for the goal of approximating the length of a line segment.What is DDA?The primary purpose of a DDA in computer graphics is ... Read More

Difference Between Server-side Scripting and Clientside Scripting

AmitDiwan
Updated on 23-Mar-2021 07:38:59

5K+ Views

In this post, we will understand the difference between server-side scripting and client-side scripting.Server-side ScriptingIt helps work with the back end.It doesn’t depend on the client.It runs on the web server.It helps provide a response to every request that comes in from the user/client.This is not visible to the client side of the application.It requires the interaction with the server for the data to be process.Server side scripting requires languages such as PHP, ASP.net, ColdFusion, Python, Ruby on Rails.It is considered to be a secure way of working with applications.It can be used to customize web pages.It can also be ... Read More

Difference Between Private and Protected in C++

Nishu Kumari
Updated on 03-Mar-2025 13:16:34

2K+ Views

In this article, we'll explain the difference between private and protected access specifiers in C++. Access specifiers in C++ control who can access the variables and functions inside a class. Two commonly used specifiers are private and protected. Private members are accessible only within the class, while protected members can be accessed by the class and its derived classes. We'll show how each specifier works in C++, especially with inheritance, using simple examples to make it easy to understand. Private Access Modifier When we declare a class member as private, it means that this member is only accessible within ... Read More

Difference Between Linear Queue and Circular Queue

AmitDiwan
Updated on 23-Mar-2021 07:14:18

3K+ Views

In this post, we will understand the difference between linear queue and circular queue −Linear QueueIt is a linear data structure, which data is arranged in a linear pattern.Operations such as insertion and deletion are done from rear and front respectively.It requires more memory, since data is stored in a linear fashion.The element that is added to a linear queue at first, is the element that gets deleted first.It follows FIFO, i.e first in first out.The element that is inserted first is the element that is deleted first as well.It is not as efficient as a circular queue structure.Circular QueueThe ... Read More

Difference Between Insertion Sort and Selection Sort

Nishu Kumari
Updated on 03-Mar-2025 13:16:17

4K+ Views

In this article, we will explain the difference between Insertion Sort and Selection Sort. These are two basic sorting algorithms used to arrange numbers in order. We will look at how they work, how fast they are, and when to use each one. By the end, you'll have a clear understanding of the differences between Insertion Sort and Selection Sort. Here's what we'll cover: What is Insertion Sort? What is Selection Sort? Complexity Comparison Key Differences Between Insertion Sort and Selection Sort ... Read More

Explain the Difference Between Definition and Declaration

AmitDiwan
Updated on 23-Mar-2021 07:13:31

2K+ Views

In this post, we will understand the difference between definition and declaration.DefinitionDefinition, with respect to a function indicates that the body of the function has been developed.With respect to variable, it means a value has been associated/defined with that variable.A function can be defined only once.Once a function or variable has been defined, it is ready to be used.A variable can be re-defined multiple times, as and when required. This depends on the language and the scopes.Memory is allocated when function or a variable is defined.Below is an example of variable definitionsum = 0A variable named ‘sum’ is assigned to ... Read More

How to use Boto3 to get the specified version table definition of a database from AWS Glue Data Catalog?

Ashish Anand
Updated on 23-Mar-2021 06:49:23

333 Views

Problem Statement − Use boto3 library in Python to retrieve the table definition of a database.Example − Retrieve the table definition of a database ‘QA-test’ and table as ‘security’ for version 2.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − database_name, table_name and version_id is the mandatory parameter. It fetches definition of given table for a specified version.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create ... Read More

Advertisements