answersLogoWhite

0

📱

Computer Science

Computer Science is the systematic study of algorithmic processes that describe and transform information. It includes the theoretical foundations of information and computation and the practical techniques of applying those foundations to computer systems. Among the many subfields of Computer Science are computer graphics, computer programming, computational complexity theory, and human-computer interaction. Questions about Computer Science, terms such as algorithms and proofs, and methodologies are encouraged in this category.

1,839 Questions

Where will the CPU store data for easy access and quick retrieval during these computations?

CPU's will have a number of small local data storage points called "registers". These registers only hold small amounts of data and provide the fastest possible access.

Why is having a possible 256 characters a problem in binary?

Some writing systems (e.g. Chinese) make use of tens of thousands of characters.

There are far more than 256 printable characters that one might want to use in a printed document.

The solution is Unicode, which is a standard character code that allows for "infinite" expansion of the set of character codes and corresponding glyphs (printable symbols associated with the codes). Unfortunately until recently many operating systems did not have full Unicode support.

How do you Write a pseudo code algorithm that reads in three values and writes out the result of subtracting the second value from the sum of the first and third values?

"Pseudocode" means you don't use any actual computer language, so you can be quite informal. Just get the general idea. In this case, for instance:

Input number to a

Input number to b

Input number to c

result = a + c - b

Show result


Your teacher may have specific requirements for pseudocode; try to incorporate those.

What is Tina in binary code?

That would depend on which computer character code you want to use, there have been thousands of them. The most current is Unicode an extension of ASCII. Unicode can support every living language on earth and many dead ones too. However it has multiple coding standards.

Some other now largely considered obsolete computer character codes are EBCDIC (still used on come IBM mainframe computers), FIELDATA, BCDIC (used by IBM before they developed EBCDIC in 1964), CDC Display Code, Hollerith punch card code, BAUDOT, etc. Some computers (e.g. IBM 1401, IBM 650, IBM 1620) actually used different character codes in their internal memory than they used for input/output.

Computer character codes before the 1960s generally were limited to capital letters only (these were typically 6 bit codes, not the 8 bit that IBM introduced with EBCDIC in 1964 on their System 360 or the new 7 bit standard teletype code ASCII introduced just before that and soon adopted by computer manufacturers other than IBM).

In ASCII the word Tina is the following Hexadecimal bytes (you can convert to binary):

  1. T = 54H
  2. i = 69H
  3. n = 6EH
  4. a = 61H

in EBCDIC the word Tina is the following Hexadecimal bytes (you can convert to binary):

  1. T = E3H
  2. i = 89H
  3. n = 95H
  4. a = 81H

What are the reasons for using parallel transformation?

Parallel transformation is used to enhance performance and efficiency in data processing by allowing multiple processes to execute simultaneously. This approach reduces processing time, particularly for large datasets, by leveraging the capabilities of multi-core processors or distributed computing environments. Additionally, it improves resource utilization and can lead to faster response times in applications requiring real-time data processing. Lastly, parallel transformation can simplify complex tasks by breaking them into smaller, manageable parts that can be executed concurrently.

What is the role of physics in computer science?

Physics plays a crucial role in computer science by providing the underlying principles for understanding how computers work at a fundamental level. Concepts such as electricity, magnetism, and quantum mechanics are essential for designing hardware components and creating efficient algorithms. Understanding physics can also inspire new computational paradigms, such as quantum computing.

How do polynomial time vs. exponential time algorithms compare?

An algorithm that completes in "polynomial time" is faster to solve than an algorithm that completes in "exponential time" in most of the important cases where it needs to be solved.

An algorithm that completes in "polynomial time" the time to solve is always determinable by a polynomial equation (e.g. x^2, x^4+7*x^3+12*x^2+x+19, x^8392).

An algorithm that completes in "exponential time" the time to solve can only be determined an exponential equation (e.g. 2^x, e^x, 10^x, 982301^x).

Exponential equations give larger value answers than polynomial equations after a certain input value and then increase progressively faster. This makes "exponential time" algorithms take much longer than "polynomial time" algorithms to solve, often making many of them effectively unsolvable for certain cases.

Many of the most important algorithms needed to solve real world problems are "exponential time" algorithms.

How is data mining a key piece of analytic?

In many databases, much of the data may be inherently irrelevant to a given query or may lose relevance over time. This can impact the speed at which queries execute or make analysis more difficult to separate the wheat from the chaff. By data mining, the domain of data in reduced beforehand to allow analysis to zero in on the relevant data to begin with.

How can you represent a negative integer in a computer system?

There are many different ways this can be done using binary form:

  • signed magnitude, one bit is the sign (i.e. 0=+, 1=-) and the other bits are the magnitude of the number (this is analogous to how we write negative integers on paper)
  • ones complement, invert every bit of the magnitude of a number to get its negative form
  • twos complement, invert every bit of the magnitude of a number then add one to get its negative form (most computers now use this form as the arithmetic circuits to do calculations in this form are simpler and thus less expensive than for the other two.

There are also corresponding ways this can be done using decimal forms (e.g. BCD, 2 of 5, excess-3)

  • signed magnitude, one bit or digit is the sign (i.e. 0=+, 9=-) and the other digits are the magnitude of the number (this is analogous to how we write negative integers on paper)
  • nines complement, subtract every digit of the magnitude of the number from 9 to get its negative form
  • tens complement, subtract every digit of the magnitude of the number from 9 then add one to get its negative form

Is the concept of Classes in Computer Science similar to the concept of Groups in Mathematics?

No, the two things are unrelated. A class (in computer science) is a programming building block or unit. You can think of a class as a DATA TYPE - since you can define new data types based on classes.Note that, while a "group" can also be thought of as defining a class, a group is actually a set (and associated operations) which fulfill VERY SPECIFIC REQUIREMENTS (such as the existence of a neutral element, and the associative property). There are no such requirements for classes in computer programming.

What is a biautomaton?

A biautomaton is a finite automaton which arbitrarily alternates between reading the input from the left and from the right.

How we calculate complexity of algorithem?

The complexity of an algorithm is typically assessed in terms of time and space. Time complexity measures how the runtime of an algorithm increases with the size of the input, often expressed using Big O notation (e.g., O(n), O(log n)). Space complexity refers to the amount of memory an algorithm uses relative to the input size. Both complexities can be analyzed through various methods, including counting operations, using recurrence relations, and empirical testing.

How many bytes does it takes to write the word Nigeria?

Taking it an absolute minimum, there is one byte per letter. As Nigeria has 7 letters, that is 7 bytes. However, on a computer there may be other things to consider within the software being used. So things like formatting of the word would have to be stored too. As there are so many ways of formatting a word and so many programs that it can be done in, there is no fixed answer when you take all of those things into consideration. So purely looking at it as text with no formatting and saying 7 letters take 7 bytes is the best answer to give.

When i use a 6pin adapter do i need to put 2 4pin cables into it or just one as the adapters look like they have 2 4 pins?

You need to put two 4-pin cables into the adapter as that provides the additional power that is required to drive a single 6-pin PCIe connection.

How do you spell hey in binary code?

Taking each letter in turn:

01101000 is h

01100101 is e

01111001 is y

Does ram contain instructions for basic computer operations?

No. RAM is a volatile memory storage used for the temporary storage of programs and the data associated with the programs. Computers use RAM to speed up the loading times of programs because retrieving a program from the hard drive is significantly much slower.

How can a make a batch file to know if a number is not a perfect square?

a number is a perfect square when you can directly extract its square root in whole numbers and without approximation. when you subject a certain number to a radical sign, you can extract its square.

example: 25 is a perfect square. it's square root is 5, since 5 x 5 is equal to 25

What is meant by the term algorithm?

Algorithm means written expression of any data.