Method 1:
Sort the array in descending order, compare 1st and 2nd if not same , return 2nd if same return -1
Method 2:
Find the largest number in the array, initialize another array with dimension 1 less than of original. Copy the array elements from the original array minus the largest element. not select largest from the second array and compare with the previous one if not same return the second largest if same return -1
List down the names of any three parameters on which you analyze an algorithm?
what is algorithm and its use there and analyze an algorithm
What is professionalism in computer?
Basically, professionalism in computers refers to your ability to interact with other people. Everything from the way a technician talks to users to the personal hygiene and ability to dress professionally.
What is the difference between polling and vector interrupt service routine?
polling interrupt is alternative to the vector interrupt ,
it requires that the interrupt handler poll or send a signal to each device in turn in order to find out which one is sent the interrupt request.....
The IP address.
Why computer known as data processor?
A computer is an electronic device which manipulates or transforms data. it accepts data, stores data, process data according to a set of instructions, and also retrieve the data when required. Hence it is known as a data processor.
Matched Samples
Will dijkstra and bellman ford algorithm yields same solution?
Yes they will yield the same result.
But this is iif they have the same topology . That is if the topology remains the same 100% chances to yield the same result
But if the topology differs. That is both have diff topology they will not yield the same result in most of the cases.
This is a good debatable question. If you see the differences in the algorithms , one is distance vector and one is link state.
all i can say is if the n/w large , then bellman ford will not converge soon. So for large n/ws Dijkstras is preferred.
But for smaller n/ws Bellman is preferred because its based on Distance/hops.
So in short they will yield same results if the topology is the same, But if the topology differs it can be found out by checking the algorithms flow chart.
And if there is any negetive weights Bellman will converge soner than Dijkstras.
I hope this should answer your question. Good question btw but no defined answer for this one. Hpe this was Helpful.
Explain why Boolean logic is so important for computers?
Because computers uses binary as its language.
And programs are representation of logic.
We first determine the ratio of relative computer speed to the total collective work done. Since two computers are involved, that requires 240 minutes of total execution time. The first computer performs twice as slowly as the second, so it runs at "2x" amount of time used. The second computer runs at "x" amount of time. The initial equation is:
1x + 2x = 240
The result of combining like terms and simplifying the result comes to:
x = 80
Therefore, computer 1 performs 80/240 (or 1/3) of the work, while the faster computer performs 160/240 (or 2/3) of the work. To come up with the final amount of time it would take, we set up two equations:
1/3x = 240
2/3x = 240
This means that it would take the slower computer 720 minutes to complete the task by itself, while the faster computer would finish in only 360 minutes.
What would not be an appropriate topic for your personal statement?
Anything not about you would not be appropriate ... the weather, for example.
What does DX Error 0x8876086c mean?
Unfortunately error codes returned by DirectX rarely mean anything. The developers show extreme laziness in this regard. The only way you are going to get any information about your problem is via running DirectX in Debug mode with diagnostics output turned on. The diagnostics text is actually very useful.
D3DERR_DRIVERINVALIDCALL = MAKE_D3DHRESULT(2157) = 0x8876086c = -2005530516 is defined in "d3d9.h"
Who knows? It's too soon to ask... Left 4 dead 2 just barely came out in 2009, and just got re-released about a year or so after that. But I heard Valve say as soon as they are done with Fortress Resort 2(maybe team fortress?) or whatever, they MIGHT start developing Left 4 Dead 3. And you should also remember that they need to create the maps to play on, make the characters and get voice actors for them, coming up with achievements and more. That may take awhile to get done. For now, just cuddle up with Mass Effect 3 and hope for the best.
Kristie at a party goes up to Jordan and tells him, "Jordan, you are drunk." Jordan replies, "Kristie, you are ugly, In the morning, I'll be sober."
Who descibed many elements of the modern digital computer?
who discribed many elements of the modern digital computer ? who discribed many elements of the modern digital computer ?
The Region file format is a storage format for Minecraft chunks introduced in Minecraft Beta 1.3, in which groups of 32×32 chunks are stored in a region file rather than individually. It could be said that a region is a part of a file system where the header is positions for each file and sector is the allocation size. The system is based on McRegion,[1] a mod by Scaevolus, also known for his development of the Optimine project. The McRegion format was adopted nearly unchanged, except for the addition of a table of chunk update timestamps. JahKob claims that this format is up to 7 times faster than the previous system.[2]
As of Minecraft 1.2, the Region file format has been superseded by the Anvil file format; however, the Anvil file format only made changes to the Chunk format and only changed the region file extensions from ".mcr" to ".mca".
How long did it take to build the computer?
It took my brother about 4-5 hours. But its a good computer.
Click on the "Start" menu and select "Run."
Type "msconfig" into the open box and click "OK."
Click on the "Boot" tab and check the box next to "Boot Log."
Click "Apply" and then restart your computer.
Click on the "Start" menu, then "Search Files and Folders."
Search for any files that start with the following names. Write down the full name (i.e. rot.exe or rot.sys) of every file that you find.
"rot"
"gas"
"gaopdx"
"seneka"
"win32k.sys"
"uacd"
"tdss"
"tdss"
"kungsf"
"gxvxc"
"ovsfth"
"msqp"
"ndisp"
"msivx"
"skynet"
Close the "Search Files and Folders" window.
Click on the "Start" menu and then click "Run."
Type "cmd" into the open box and click "OK." The Command Prompt window will open.
Type "cacls C:WINDOWSsystem32drivers [filename] /d everyone" into the Command Prompt window and press "ENTER." Note that [filename] should be replaced with the file name that you wrote down in Section 2, Step 2. For example, "cacls C:WINDOWSsystem32drivers rot.sys /d everyone" Do this for every file you wrote down.
Restart your computer.
Click on the "Start" menu.
Click on "Search Files and Folders."
Search for every file that you wrote down and delete them. To delete a file, simply right-click on it and select "Delete."
more :http://www.bestspywarescanner.net/spyware-list/Rootkit.html
What is the meaning of Internationalization?
Setting up a program to work in many countries in the user's own language in each of those countries. This requires some support from the OS.
How do you make a computer joystick?
If you are trying to make a computer joystick, the way you would do it would depend on the type of signals you are trying to produce. If you want a simple digital joystick, you would use switches for each main position, and a pivot and arms to reach the switches. If you want an analog joystick, you would need to create a yoke to turn 2 sets of potentiometers (basically volume controls). A modern digital joystick might use the potentiometers and an A/D converter. Then you would have to have switches for the fire/control buttons. Then you would need the correct cables and wiring. If you create for USB, you'd need extra circuitry to make it USB compliant (and that is beyond the scope of this answer).
How do you know if the song version is clean?
Usually in the clean version of a song, when the singer or rapper cusses, the vocals will disappear and only the accompaniment ("background music") will continue. So just listen to the song and see if it cusses. If you hear the vocals go off for the length of a single word, it is most likely clean. It might also help too look up the lyrics on a site like this: http://www.sing365.com -DJ Craig
Those may be operating systems of automated machines.
What is the difference between Apple computers and PCs?
A apple computer is a fast and good looking computer they are safer then pcs with viruses, they have amazing internet, and they have great communication applications.
A PC is a better gaming system, slower than macs, and is not as protective from viruses.