Distinct Numbers from All Permutations of a Binary String

Shubham Vora
Updated on 18-Jul-2023 17:09:11

469 Views

Problem Statement We have given binary string str of length N. We need to find all permutations of the string, convert them to the decimal value, and return all unique decimal values. Sample Examples Input str = ‘1’ Output [1] Explanation All permutations of the ‘1’ is only ‘1’. So, the decimal value related to ‘1’ equals 1. Input str = ‘10’ Output [1, 2] Explanation The permutations of ‘10’ are only ‘01’ and ‘10’, equivalent to 1 and 2, respectively. Input ‘101’ Output [3, 5, 6] Explanation All possible permutations of ‘101’ are ... Read More

Difference Between Manchester and Differential Manchester

Pranavnath
Updated on 18-Jul-2023 17:08:21

7K+ Views

Digital encryption technology plays a crucial role in data transmission over communication channels. Manchester encoding and differential Manchester encoding are two good methods for efficiently transmitting digital data. The purpose of this article is to comprehensively compare these two coding schemes and highlight their unique characteristics, advantages, and differences. Manchester encoding, known for its simplicity and widespread use, uses transitions at the beginning or end of each bit period to represent bit values. In contrast, differential Manchester coding, also known as biphase mark code, uses transitions to transmit values. This important difference gives rise to some conflicting properties that affect ... Read More

Count Intervals That Intersect with a Given Meeting Time

Shubham Vora
Updated on 18-Jul-2023 17:07:14

134 Views

Problem Statement We have given a two-dimensional array containing the pairs of starting and ending times for time intervals in the 12-hour format. Also, we have given string str in the 12-hour time format. We need to find a total number of intervals which included the time represented by str. Sample Examples Input arr[][2] = {{“12:02:AM”, “10:55:PM”}, {“12:51:AM”, “11:40:AM”}, {“01:30:AM”, “12:00:PM”}, {“11:57:PM”, “11:59:PM”}}, str = “2:30:AM” Output 3 Explanation The time “2:30:AM” intersects the first three intervals. Input arr[][2] = {{“01:02:PM”, “10:55:PM”}, {“01:30:AM”, “11:00:AM”}}, str = “11:30:PM” Output 0 Explanation The ... Read More

Sequence Step Algorithm in Operating System

Pranavnath
Updated on 18-Jul-2023 17:07:08

323 Views

Scheduling algorithms are designed for serving the processes by providing the maximum utilization of the resources. The resources that are allocated to execute the given input, should not remain idle and repetitive projects has to be handled by the resources simultaneously without any break. Considering all these factors, a few simulation approaches have been developed to improve the repetitive activities by analyzing the nature of the process but none of the approaches delivered maximum resource utilization. Later, the sequence step algorithm has been initiated to minimize the processing and execution time of the process by determining the probability of process ... Read More

Setting Up a Linux Multifunction Server

Pranavnath
Updated on 18-Jul-2023 17:05:13

2K+ Views

Linux is widely used both as a Desktop Operating System and to create server platforms. Linux can be used to build standalone servers, and mail servers, create a web server, and set up a gateway for LAN. It is extensively used in the fields of telecommunications, embedded systems, satellites, medical equipment, military systems, computer graphics, and desktop computing. 75 percent of the world's top supercomputers run on the LINUX operating system. Setting Up a Linux Multifunction Server Creating a Linux Multifunction server First, we need to install the Debian distribution of Linux. Then configure the network manually. We need to ... Read More

Server Operating System

Pranavnath
Updated on 18-Jul-2023 17:03:53

1K+ Views

The people in the world are involved in data usage and lots of services that make the work easier. To compromise the need for high usage and data, server Operating systems are developed to provide services to many users concurrently. Server Operating System is a type of Operating system with advanced features that can be used only on servers. It is designed to use in-server computers to handle various users and requests at a time. When a person or company requires data it cannot be served using a human instead the solution is given by a machine. Server Operating System ... Read More

Segmentation in Operating System

Pranavnath
Updated on 18-Jul-2023 17:02:25

13K+ Views

In the Operating System, Segmentation is mainly useful to maintain the modular structure of a program. The purpose of using segmentation is to achieve the user's view of memory allocation similarly when paging does not bother where programs start and end and it simply divides the program into pages. The non-adjacent memory allocation technique can be divided into two types namely paging and segmentation. In segmentation, the program is not divided randomly or with a variable size but with a fixed page. Segmentation in OS The segmentation technology is used in operating systems and the process is divided into many ... Read More

Segment Descriptor

Pranavnath
Updated on 18-Jul-2023 17:01:31

2K+ Views

In an operating system, segmentation is termed a memory management technique where the memory is divided into segments that can be allocated to a process. These segments may not be in fixed length and not stored in a contagious manner. This approach has been developed after the paging process which takes multiple pages for a process to get loaded into main memory, whereas segmentation divided the code into segments as its relative code can be merged to form a single block. The segment table holds all the details relating to the segments and the processes. Generating a logical address which ... Read More

Run Two Async Functions Forever in Python

Rohan Singh
Updated on 18-Jul-2023 16:57:19

9K+ Views

Async functions, also known as coroutines, are functions that can be paused and resumed during their execution. In Python, the asyncio module, provides a powerful framework for writing concurrent code using coroutines, which are special functions that can be paused and resumed. In this article, we will explore how to run two async functions forever using asyncio in Python. Async Functions Async functions, also known as coroutines, are functions that can be paused and resumed during their execution. They allow for concurrent execution of code without blocking the main thread, thus enabling efficient utilization of system resources. To define an ... Read More

Seek Time vs Transfer Time in Disk Scheduling

Pranavnath
Updated on 18-Jul-2023 16:56:18

412 Views

Within the domain of computer frameworks and capacity gadgets, the execution of disk planning plays an essential part in optimizing information get to and recovery. Two basic components that altogether affect disk execution are seek time and transfer time. Seek time speaks to the length it takes for the disk arm to move to the specified track, whereas transfer time signifies the time required to examined or type in information once the required track is situated. This article points to investigate and explain the elemental contrasts between seek time and transfer time, shedding light on their person importance in disk ... Read More

Advertisements