Found 34472 Articles for Programming

Difference Between Time Sharing OS and Multiprogramming OS

Pradeep Kumar
Updated on 13-Jul-2023 10:48:34

1K+ Views

Operating systems play a vital role in managing computer resources and providing a platform for executing programs. Two common types of operating systems are Time Sharing Operating Systems and Multiprogramming Operating Systems. While both aim to improve resource utilization and user experience, they differ in their approach to achieving these goals. Time Sharing Operating Systems Time Sharing Operating Systems (TSOS) focus on providing an interactive computing environment where multiple users can simultaneously access the system and share its resources. TSOS achieves this by rapidly switching between different user programs, giving each user the illusion of having dedicated access to the ... Read More

How to Conduct a Two Sample T-Test in Python?

Sohail Tabrez
Updated on 13-Jul-2023 10:52:49

933 Views

Introduction The means of two groups are compared in statistics to see if they differ substantially from one another using a two-sample t-test. The test is frequently employed in scientific studies to ascertain whether two groups differ significantly on the basis of a continuous variable. In this article, we'll look at how to use Python's scipy.stats module to perform a two-sample t-test. Conducting a Two Sample T-Test Let's first understand the theory underlying the two-sample t-test before moving on to the implementation. The test assumes that the two sample populations are normally distributed with similar variances. The two groups' means ... Read More

How to Conduct a One Sample T-Test in Python?

Sohail Tabrez
Updated on 13-Jul-2023 10:50:52

881 Views

Introduction One Sample T-Test is a statistical hypothesis test used to determine whether a population mean is significantly different from a hypothesised value. Python gives us the resources we need to carry out this test. In this article, we will walk through how to conduct a One Sample T-Test in Python using the SciPy library. Conducting a One Sample T-Test The first step in conducting a One Sample T-Test is to state the null and alternative hypotheses. The null hypothesis is the assumption that the population mean is equal to the hypothesized value. The alternative hypothesis is the opposite of ... Read More

Implementation of a CNN based Image Classifier using PyTorch.

Sohail Tabrez
Updated on 12-Jul-2023 19:53:55

97 Views

Introduction Due to its capacity to recognise spatial characteristics in images, convolutional neural networks (CNNs) have been extensively used in image classification applications. A well-liked open-source machine learning package called PyTorch offers assistance in creating and honing neural networks, including CNNs. In this article, we'll go over how to use PyTorch to create a CNN-based image classifier. Dataset Let's first talk about the dataset before getting into the specifics of the implementation. The CIFAR-10 dataset, which has 60, 000 32x32 color images divided into 10 classes with 6, 000 images each, will be the one we use for this course. ... Read More

Build a Calculate Expression Game in Java

Neetika Khandelwal
Updated on 12-Jul-2023 13:38:24

69 Views

The task is to build an application which displays an expression and prompts for the answer. Once you enter the solution a new expression is displayed and these expressions keep on changing. After a certain amout of time the solution given for the respective application were evaluated and the total number of accurate answers were displayed. Methods (User defined) in the Game The section will walk you through the methods (and constructor) that are part of the implementation and their roles in the “Calculate Expression Game”. CalculateExpressionGame() This is the constructor of the calculateExpressionGame class. It sets up the ... Read More

Python Program to Extract Strings between HTML Tags

Devesh Chauhan
Updated on 12-Jul-2023 13:53:54

812 Views

HTML tags are used to design the skeleton of websites. We pass information and upload content in the form of strings enclosed within the tags. The strings between the HTML tags determines how the element will be displayed and interpreted by the browser. Therefore, the extraction of these strings plays a crucial role in data manipulation and processing. We can analyse and understand the structure of the HTML document. These strings reveal the hidden pattern and logic behind the construction of a webpage. In this article, we will be dealing with these strings. Our task is to extract the ... Read More

Python Program to Extract String Till First Non-Alphanumeric Character

Devesh Chauhan
Updated on 12-Jul-2023 13:51:42

263 Views

Python strings are sequence of characters that represent information or data. A normal string can contain various characters that are enclosed within single or double quotes but an Alphanumeric string only consist of digits and letters. Both alphanumeric and non-alphanumeric strings are used and applied in various scenarios including password protection, data processing and validation, formatting etc. Specific patterns can be identified and extracted. We can also provide different combinations using these types of strings. We will perform an operation based on these strings. Our task is to extract a string till first non-Alphanumeric character is encountered. Understanding the ... Read More

Python program to extract N largest dictionaries keys

Devesh Chauhan
Updated on 12-Jul-2023 13:50:05

134 Views

A python dictionary is a data structure that can be used for numerous operations making it a prolific programming tool. It stores data in the form of key-value pairs i.e., each data can be labelled with a unique key. Keys in dictionaries are identifiers that are associated with different values, these values can be accessed, modified and deleted. Based on the task, keys can be sorted and extracted in different orders. In this article, we will be discussing a similar concept of extracting N largest dictionaries keys. We will operate on these unique keys and extract the relevant data. ... Read More

Python Program to Extract Mesh Matching Strings

Devesh Chauhan
Updated on 12-Jul-2023 13:49:31

52 Views

Pattern recognition is an important programming concept. It allows us to retrieve specific data that satisfies a particular condition or match a particular sequence. This principle is helpful in various fields including language and image processing. String matching helps us to extract meaningful information from a large collection of data. In this article, we will be discussing a similar concept of extracting mesh matching strings from a given list of strings. Mesh matching focuses on the extraction “similar” strings of equal length, let’s discuss this problem in detail. Understanding the Problem The main concept is to extract similar ... Read More

Python program to extract key-value pairs with substring in a dictionary

Devesh Chauhan
Updated on 12-Jul-2023 13:47:49

704 Views

Dictionaries in python are data structures that store data in the form of key-value pairs. Each key is unique and it is associated with different values. A dictionary helps us to access and retrieve data efficiently allowing a programmer to build an optimized code. Specific key-value pairs can be extracted from a given dictionary based on different requirements. This selective item extraction helps us to produce a dictionary consisting of relevant information. In this article, we will be discussing a similar concept of item extraction from a dictionary based on a reference “substring”. Understanding the Problem We ... Read More

Advertisements