Articles on Trending Technologies

Technical articles with clear explanations and examples

Difference between Data Mining and Big Data

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 20-Dec-2022 3K+ Views

Big Data represents the vast amount of data that can be structured, semi−structured, and unstructured sets of data ranging in terms of terabytes. In contrast, Data Mining is the process of discovering meaningful new correlations, patterns, and trends by sifting through a large amount of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques. Data mining utilizes tools like machine learning, visualization, statistical models, etc. to extract the useful data from the Big Data. Read this article to find out more about Data Mining and Big Data and how they are different from each ...

Read More

Difference Between Data Hiding and Encapsulation

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 20-Dec-2022 21K+ Views

Data Hiding and Encapsulation are important concepts in object-oriented programming (OOP). Data hiding helps prevent the illegal or unauthorized access of members of a class, while encapsulation helps in the wrapping up of data members and methods inside a class. The most basic difference between data hiding and encapsulation is that data hiding focuses on data security, while encapsulation focuses on hiding the complexity of the system. Read this article to find out more about Data Hiding and Encapsulation and how they are different from each other. Let's start with a basic overview of these two important concepts, Data Hiding ...

Read More

Difference Between Cohesion and Coupling

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 20-Dec-2022 25K+ Views

The most basic difference between cohesion and coupling is that coupling is the representation of relationships between modules which uses the concept of inter−module, while cohesion is the intramodule representation of the relationship between modules. Read this article to find out more about Cohesion and Coupling and how these two important concepts are different from each other. What is Cohesion? In computer programming, cohesion is an indication that shows the relationship within modules. Cohesion provides the information about the functional strength of the modules. The greater the cohesion, the better will be the program design. Cohesion is basically the dependency ...

Read More

Difference Between Classification and Regression

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 20-Dec-2022 20K+ Views

In data mining, there are two major predication problems, namely, classification and regression. The most basic difference between classification and regression is that classification algorithms are used to analyze discrete values, whereas regression algorithms analyze continuous real values. The output variable must be either continuous nature or real value. The output variable in classification has to be a discrete value. In contrast, the output variable in regression must be either continuous in nature or real values. In this article, we will discuss all the important differences between classification and regression. Let's start with some basics of Classification and Regression so ...

Read More

Difference Between Cardinality and Modality

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 20-Dec-2022 11K+ Views

For understanding the information domain of a problem, there are two data modelling concepts, namely, cardinality and modality. Cardinality and modality are very important for analyzing the data objects, attributes, and relationship structures. The most basic difference between cardinality and modality is that the cardinality is a metric that specifies the number of occurrences of a data object with respect to the number of occurrences of another data object, whereas, the modality specifies whether a data object must participate in a relationship or not. In this article, we will discuss the important differences between cardinality and modality. Let's start with ...

Read More

Swift Program to Sort the Elements of an Array in Descending Order

Ankita Saini
Ankita Saini
Updated on 20-Dec-2022 882 Views

In this article, we will learn how to write a swift program to sort the elements of an array in descending order. To sort the elements of an array Swift provides an in-built function named sort(by:). This function takes one argument and then sorts the array according to the condition passed in the by parameter. So to sort the array in descending order we pass > in the by the parameter of the sort(by:) function. Syntax func sort(by:) Here sort(by:) is an instance method. Which will sort the given sequence according to the value of by: parameter. Here ...

Read More

Swift Program to Sort the Elements of an Array in Ascending Order

Ankita Saini
Ankita Saini
Updated on 20-Dec-2022 3K+ Views

In this article, we will learn how to write a swift program to sort the elements of an array in ascending order. Here we are going to use the following 2 methods: sort() function without parameter sort(by:) function with parameter To sort the elements of an array Swift provides an in-built function named sort(). This function can work with or without parameters. By default this function sort the array in ascending order. Otherwise, you can pass < in the by a parameter of the sort(by:) function to sort the array in ascending order. Method 1: sort() Function Without ...

Read More

Swift Program to Remove All Occurrences of an Element in an Array

Ankita Saini
Ankita Saini
Updated on 20-Dec-2022 946 Views

In this article, we will learn how to write a swift program to remove all occurrences of an element in an array. So here we use the following methods − Using an inbuilt function Without using an inbuilt function Method 1: Using the removeAll() Function To remove all the occurrences of an element in an array we use a pre-defined function named removeAll(where:). This function removes all the elements from the given sequence that satisfy the given condition. For Example − Array = [2, 3, 5, 67, 2, 87, 2, 68] Element = 2 Output array = [3, 5, 67, ...

Read More

Swift Program to Print an Array

Ankita Saini
Ankita Saini
Updated on 20-Dec-2022 5K+ Views

This article will teach us how to write a swift program to print an array. To print an array, we are using the following methods − Using array name Using for loop Using a while loop Using forEach() method Method 1: Print the array using the array name We can print an array by directly using the name of the array in the print function. Syntax Following is the syntax − print(arrayName) Here we simply pass the name of the array in the print function to display the array. Example The following Swift program shows how to print ...

Read More

Swift Program to Find Common Array Elements

Ankita Saini
Ankita Saini
Updated on 20-Dec-2022 2K+ Views

This article will teach us how to write a swift program to find common array elements. So here we use the following methods − Using the filter method Using sets But before moving to the methods, we first understand common elements with the help of an example. Suppose we have two arrays − Arr1 = [2, 4, 6, 89, 78] Arr2 = [56, 88, 32, 4, 99, 89] So the common elements between two arrays are [4, 89]. Because they are available in Arr1 and Arr2. Method 1: Using filter(_:) Method To find common elements between two arrays ...

Read More
Showing 41791–41800 of 61,297 articles
Advertisements