answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How do you build a PDA that accepts the language even palindrome?

The PDA accepting the even length palindrome is:

Let us suppose the string of (0,1) as even length palindrome. Let us consider the string be wwr -- the moves of PDA then can be defined as:

d(q0,E,E)= (qo, E)

d(q0,0,z0)= (q0,0,z0)

d(q0,1,z0)= (q0,1z0)

Want context free grammar for c language compiler?

we use context free grammer in compiler consctrtion to cheack the validati of input in parsing.

What is single thread of screw thread?

when lead of the screw is equal to the pitch it is called single threaded screw

What is Efficiency of Binary Search tree operations?

If it is an unbalanced binary tree, O( ln( n ) / ln( 2 ) ) is best-case. Worst case is O( n ).

If it is balanced, worst case is O( ln( n ) / ln( 2 ) ).

What does formatting a drive involve?

To format a hard drive means to delete any information on the drive and to set up a file system so Windows 7 can read from it and write data to it.

How do you use minitool power data recovery software to recover data from my corrupt partition?

The Power Data Recovery website has step-by-step directions on how you use the minitool power data recovery software to recover data from your corrupt partition. The steps are different depending on the partition (FAT32 or NTFS).

Why does a triangle have three sides?

because it wants to have three sides because squares have already taken four sides PENIS

How do you Convert -4.2 radians into revolutions?

0.159154943 is the conversion factor. So, -4.2 rad x 0.159154943 = -0.668450761 revolutions.

How does information differ from data?

Data is just a set of random information without organization - Information is data that is organized in a way to make it useful and actionable.

Write a function in c that returns the largest value stored in an array-of-int Test the function in a simple program?

int max(int arr[], int arrSize)
{
int maximum = arr[0];
for (int i = 0; i < arrSize; i++)
{
if (maximum < arr[i])
{
maximum = arr;

}

}

return maximum;

}

How is scanning of programming useful to students?

It helps students think about why certain chunks of code are there and how they affect the program itself. This helps in programming, as once you see a block of code that does one job, you can usually replicate it within your own work to bypass problems.

Does Peterson algorithm satisfy progress?

Yes Petersons algo satisfies Mutual exclusion, Progress and bonded waiting and is more efficient than Dekker's algo.

What is the standard file header for an executable file?

There is no such standard since different architectures support different executable formats while some support multiple formats. For instance, Windows 32-bit supports MZ (DOS) and PE format, while 64-bit also supports PE32+, all of which have an EXE file extension. Windows also supports the older COM (DOS) format. But, as with most file extensions, the extension is simply a method of organising files by type and for associating file types to specific applications, but they tell you nothing about the file itself. Only by physically loading the file and examining its header (if it has one) can the operating system determine its actual type. In other words, renaming a COM file to an EXE file doesn't actually change the file type; it has to be completely recompiled from source.

The Apple Mac doesn't use extensions in the same way Windows does (many Mac files have no extension at all), but machine code executables are in the Preferred Executable Format (PEF), also known as Code Fragment Manager (CFM) files.

Linux (and Unix) typically use the Executable and Link Format (ELF).

Although each format obviously has its own standard header, there is no standard header that applies to all executables across all architectures.

What is AppData?

In computing, AppData is an abbreviation of Application Data.

What are the similarities between writing code or programs and writing essays or research papers?

Planning - An essay, like any good program, must have good forethought. Without planning it might collapse down the road.

Implementation - A program is crafted out of the same thing as an essay - language. The only difference is that one is meant to be read by humans and the other by computers.

Execution - Reading an essay is much like how a computer program is executed. It goes from the very start of the program at the first expression and proceeds until it finishes.

Problem Solving - The entire reason for writing an essay usually is too deal with a particular problem, but not always. The author in writing the essay must take their time making sure they are writing a solution to the problem as does a coder when they are writing a program.

There are problem a late more similarities. These are the ones that are obvious and, to me, kind of interesting.