What is Lex?

Ginni
Updated on 03-Nov-2023 03:39:01

30K+ Views

It is a tool or software which automatically generates a lexical analyzer (finite Automata). It takes as its input a LEX source program and produces lexical Analyzer as its output. Lexical Analyzer will convert the input string entered by the user into tokens as its output.LEX is a program generator designed for lexical processing of character input/output stream. Anything from simple text search program that looks for pattern in its input-output file to a C compiler that transforms a program into optimized code.In program with structure input-output two tasks occurs over and over. It can divide the input-output into meaningful ... Read More

The Bluetooth Protocol Architecture

Moumita
Updated on 03-Nov-2023 03:33:56

51K+ Views

Bluetooth network technology connects mobile devices wirelessly over a short-range to form a personal area network (PAN). The Bluetooth architecture has its own independent model with a stack of protocols, instead of following the standard OSI model or TCP/IP model. The protocols in the Bluetooth standard can be loosely grouped into the physical layer, data link layer, middleware layer, and application layer as shown in the following diagram − Protocols in the Bluetooth Protocol Architecture Physical Layer − This includes Bluetooth radio and Baseband (also in the data link layer. ... Read More

Change Azure Subscription in PowerShell

Chirag Nagrekar
Updated on 03-Nov-2023 03:24:32

36K+ Views

To change the azure subscription using PowerShell, we can use the Select-AZSubscription command. When you use this command, you can use either the subscription ID, Subscription Name, or the Tenant ID.ExampleWith Subscription Name,Select-AzSubscription -SubscriptionName 'Visual Studio'With TenantID,Select-AzSubscription -Tenant 'XXXX-XXXXX-XXXXXXX-XXXX'With Subscription ID,Select-AzSubscription -SubscriptionId 'XXXX-XXXXX-XXXXXXX-XXXX'Sometimes on console messages will appear that one or more subscriptions are active. In that case, you can switch the other subscription using the Set-AZContext command and you can use subscription ID or the Name for it.ExampleSet-AzContext -SubscriptionId "xxxx-xxxx-xxxx-xxxx" OrSet-AzContext -SubscriptionName "Visual Studio"

A Protocol Using Go-Back-N

Samual Sam
Updated on 03-Nov-2023 03:15:35

38K+ Views

Go-Back-N protocol, also called Go-Back-N Automatic Repeat reQuest, is a data link layer protocol that uses a sliding window method for reliable and sequential delivery of data frames. It is a case of sliding window protocol having to send window size of N and receiving window size of 1.Working PrincipleGo – Back – N ARQ provides for sending multiple frames before receiving the acknowledgment for the first frame. The frames are sequentially numbered and a finite number of frames. The maximum number of frames that can be sent depends upon the size of the sending window. If the acknowledgment of ... Read More

Operating System as a Resource Manager and Extended Machine

Bhanu Priya
Updated on 03-Nov-2023 03:12:34

37K+ Views

An operating system is the interface between the user and the machine which controls and coordinates the use of the hardware among the various application programs for the various users. Operating System as Extended Machine Let us understand how the operating system works as an Extended Machine. At the Machine level the structure of a computer’s system is complicated to program, mainly for input or output. Programmers do not deal with hardware. They will always mainly focus on implementing software. Therefore, a level of abstraction is supposed ... Read More

Difference Between Forward and Backward Reasoning in AI

Kiran Kumar Panigrahi
Updated on 03-Nov-2023 03:04:59

74K+ Views

The objective of search in Artificial Intelligence (AI) is to find the path to solve different problems. The search in AI can be executed in two ways namely, Forward Reasoning and Backward Reasoning. The most basic difference between the two is that forward reasoning starts with the new data to find conclusions, whereas backward reasoning starts with a conclusion to determining the initial data. Read this article to learn more about Forward Reasoning and Backward Reasoning and how they are different from each other. What is Forward Reasoning? Forward reasoning is a process in artificial intelligence that finds all the ... Read More

Add and Remove Values in an Array in PowerShell

Chirag Nagrekar
Updated on 03-Nov-2023 03:03:08

45K+ Views

An array is always a fixed size. To add value to the array, you need to create a new copy of the array and add value to it. To do so, you simply need to use += operator.For example, you have an existing array as given below.$array = 1, 2, 3, 4, 5To add value “Hello” to the array, we will use += sign.$array += "Hello"Now, we will check the output of the array.We have another method to add value to the array. By Add() operation of the array.$array.Add("Hi")When you use the above method to add a variable in the ... Read More

Sort Objects in a List in Python

Vikram Chiluka
Updated on 03-Nov-2023 02:44:41

2K+ Views

In Python, a list is an ordered sequence that can hold several object types such as integer, character, or float. In other programming languages, a list is equivalent to an array. Square brackets are used to denote it, and a comma (, ) is used to divide two items in the list. In this article, we will show you how to sort the objects and elements in a list using python. Below are the different methods to accomplish this task − Using sort() method Using sorted() method Assume we have taken a list containing some elements. We will ... Read More

Difference Between HashMap and IdentityHashMap in Java

Rudradev Das
Updated on 02-Nov-2023 18:20:39

378 Views

HashMap and IdentityHashMap are the key value data sets which are used to access the key data pairs. More specifically. A HashMap is a Java collection framework which provides the functionality of a proper hash table data set. The map stores the element value as a key or pairs which are the unique identifiers in nature. This map also permits the null values as a non synchronized class. The IdentityHashMap is a special type of hash class by which we handle the rare cases related to the reference-equality. This map compare the keys by using a " = = " operator ... Read More

Difference Between Hashtable and Synchronized Map in Java

Rudradev Das
Updated on 02-Nov-2023 18:18:26

523 Views

A HashTable is a compact abstract data set which converts the keys of a map to the values by computing the indexes into an array of slots to enable faster data access. On the other hand, a synchronized map is a Java collection class which is mainly used to synchronize a particular map to make it a thread safe collection and can be applied on a whole object. The map does not contain any null value. Input [ ARB, RDD, KOL, DHKA ] Output Insertion Order of objects in HashTable : [ ARB, RDD, KOL, DHKA ] Insertion Order of objects in Synchronized Map : [ ... Read More

Advertisements