Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Programming Languages Articles
Page 8 of 18
How to check whether a character is in the Alphabet or not in Golang?
In this tutorial, we will learn how to check whether the character is an alphabet or not. This tutorial includes two ways to achieve this − First, using the built-in function isLetter() present in the fmt library will reduce the line of codes. Another way is to use the concept of ASCII values as every character has a unique ASCII value using which we can find out whether the current character is an alphabet or not. The ranges of uppercase and lowercase alphabets are as follows − uppercase alphabets – 65 to 90 lowercase alphabets – 97 to 122 If ...
Read MoreDifference Between EPROM and EEPROM
Both EPROM and EEPROM are the types of ROM or Read Only Memory, but they are different from each other in many aspects that we will discuss in this article. Let's start with some basics of EPROM and EEPROM so that it becomes easier to understand the differences between them. What is EPROM? EPROM stands for Erasable Programmable Read Only Memory. EPROM is a modern version PROM (or Programmable Read Only Memory). EPROM provides the facility of erasing data stored on it. It uses ultraviolet rays (UV rays) to erase the content stored it. EPROM is built up of ...
Read MoreWhat are the differences between BigDL and Caffe?
Let us understand the concepts of BigDL and Caffe before learning the differences between them.BigDLIt is a distributed deep learning framework for Apache Spark, launched by Jason Dai in the year 2016 at Intel. By using BigDL, users write deep learning applications as standard Spark programs that can directly run on top of existing Spark or Hadoop clusters.FeaturesThe features of BigDL are as follows −Rich deep learning supportEfficiently scale-outExtremely high performanceprovides plenty of deep learning modulesLayersOptimizationAdvantagesThe advantages of BigDL are as follows −SpeedEase of useDynamic natureMultilingualAdvanced analyticsDemand for spark developers.DisadvantagesThe disadvantages of BigDL are as follows −No automatic optimization processFile ...
Read MoreConvert the following LEX program into Lexical Analyzer.nAUXILIARY DEFINITIONSn −n −n −nTRANSLATION RULESn a{ }n abb{ }n a*b+
SolutionConvert the pattern into NFA’sMake a Combined NFAConvert NFA to DFAA = ε − closure (0) = {0, 1, 3, 7}The transition on symbols a, b from state AFor State Aε − closure (Ta) ε − closure (Tb)= ε − closure ({2, 4, 7}) = ε − closure ({8})= {2, 4, 7} = B = {8} = CFor State Bε − closure (7) ...
Read MoreWhat is Implementation of Block Structured Language in compiler design?
A block is a statement containing its own local data declaration. The concept of a block is originated with ALGOL. The block-structured language permits an array with adjustable length. The main feature of blocks is their bracketing structure (begin and end used in ALGOL) in which they can define their data.Activation Record for Block Structured LanguagesBlock structured language like ALGOL, and PL/I permit adjustable arrays, i.e., of varying length. Therefore, we cannot store irregular size arrays in between activation records. It can allocate the flexible or variable arrays at one corner of the activation record or above the fixed-size data. ...
Read MoreWhat is syntax-directed translation schemes in compiler design?
It is a kind of notation in which each production of Context-Free Grammar is related with a set of semantic rules or actions, and each grammar symbol is related to a set of Attributes. Thus, the grammar and the group of semantic Actions combine to make syntax-directed definitions.The translation may be the generation of intermediate code, object code, or adding the information in symbol table about constructs type. The modern compiler uses the syntax-directed translation that makes the user’s life easy by hiding many implementation details and free the user from having to specify explicitly the order in which semantic ...
Read MoreWhat is Block Structure?
A block is a statement containing its own local data declaration. The concept of a block is originated with ALGOL. The block-structured language permits an array with adjustable length. The main feature of blocks is their bracketing structure (begin and end used in ALGOL) in which they can define their data. In 'C' language, the syntax of the block is −{ declaration statements; }where the braces limit the block. The characteristic of a block is its nesting structure. Delimiters mark the starting and end of the block. In 'C' language, the braces { } act as delimiters, while ALGOL ...
Read MoreWhat is Stack Allocation of Procedure Calls?
In stack allocation, it can analyze how the memory is allocated at runtime when a procedure is called & when the value from the procedure is returned.Passing Parameter to Procedure (param x)− When actual parameter x is passed to the procedure, it will be pushed into the stack, i.e., push (x).∴ param(x) refers to push (x) which refers to decrementing of the top pointer from N + 1 to N and x will be pushed onto the stack.∴ The following statements will be executed.top = top – 1*top = x or 0[top] = xHere 0[top] means 0 offsets from the ...
Read MoreWhat is Implementation of Simple Stack Allocation Scheme
Stack Allocation scheme is the simplest Run-Time Storage Management Technique. The storage is allocated sequentially in the stack beginning at one end. Storage should be freed in the reverse order of allocation so that a block of storage being released is always at the top of the stack.A program consists of data and procedures. On execution of each procedure, some amount of memory is occupied, which has information regarding the procedure, i.e., its actual parameters, number of arguments, return address, return values & local data, etc. That part of memory is the Activation Record of that procedure.Activation RecordAn Activation Record ...
Read MoreWhat is Heap Allocation?
Heap allocation is the most flexible allocation scheme. Allocation and deallocation of memory can be done at any time and any place depending upon the user's requirement. Heap allocation is used to allocate memory to the variables dynamically and when the variables are no more used then claim it back.Heap management is specialized in data structure theory. There is generally some time and space overhead associated with heap manager. For efficiency reasons, it may be useful to handle small activation records of a particular size as a special case, as follows −For each size of interest, keep the linked list ...
Read More