What is the difference between Dijkstra's algorithm and Floyd's algorithm?
Dijkstra doesn't support negative weight-age, Floyd support negative edges but no negative cycles. Dijkstra running time is v2 and Floyd has v3.Dijkstra is fast compared to Floyd, because only find the shortest path for single node. FloydSlow as compared to Dijkstra.
Why are people who have a solid background in math disadvantaged for programming?
Well, actually people who are good at math are usually pretty good at programming. Programming involves one creating an "equation" you could call it, to meet requirements. You create code to meet program requirements. It's like creating an formula to solve a problem.
Pascal's Triangle in 1653. Which was also discovered 5 centuries earlier by Chinese mathematician Yang Hui.
Which numbers are prime number 1 to 200?
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199
Can decimal number always be accurately represented as a binary number?
No.
eg 0.1 is non terminating in binary and so would only ever be an approximation, just like 0.3, 0.33, 0.3333333 are all approximations of 1/3 (which is non terminating when represented as a decimal).
What is a series of lines and numbers which contain information about a product?
Maybe you mean a bar code?
What is the diameter of a circle when you have the circumference?
pi (3.1415926535897932384626433832795) also pi is infinite
What is the definitnion of a isoscelies triangle?
Isosceles triangle- a triangle where two of the sides are the same length.
Is it true that if you are good at mathematics and you enjoy mathematics you can do programming?
Let me respond to this in two parts:
1. First of all, I think it's generally true that mathematical knowledge and skill is related to the ability to write and test code successfully. The mathematics that many or most programmers need includes graph theory, linear algebra, set theory, algorithm theory, and various other areas of mathematics and computer science that some people might not include in the term 'mathematics'.
2. Being a successful programmer also involves mastering a lot of other skills, especially in communication.
I worked in computing and software for decades myself. I've added a URL which outlines some of the other stuff that's involved in the occupation.
No!
A pentagon has 5 sides and, An Octogon has 8 sides.
What are the in-line functions in cc?
In-line functions differ from normal functions by the way they are dealt with by the compiler.
Normally, a function (or its code, more exactly) is stored once within the executable program. A call to this function then results in putting the parameters onto the stack and jumping to the start address of the function. When the function is finished, the stack is freed from the parameters and the program continues right after the point from where it has jumped to the function.
For an in-line function, its code is stored at any place where it is called. This saves us from the administrative overhead (putting parameters etc. onto the stack and cleaning up at the end) and, thus, reduced computing time. On the other side it enlarges the eecutable.<br>
This leads to some restrictions to inline-functions.
Can 7985 be a hexadecimal number?
Yes it could be.
It would be interpreted as 7 x (16 x 16 x16) + 9 x (16 x 16) + 8 x 16 +5
What is the common factor of 30 and 60?
30
Any time the smaller number goes directly into the larger, the smaller is the GCF (HCF) and the larger is the LCM/LCD.
Program for printing prime numbers in vb?
Option Explicit
Dim i,j,var,Flag,n
var=""
n=cint(InputBox("Enter nth Number to check Prime Numbers"))
i = 3
While i <= n
Flag = True
j = 2
While j <= i\2 And Flag
Flag = i Mod j > 0
j = j + 1
Wend
If Flag Then
var = var&" "&i
End If
i = i + 2
Wend
MsgBox("Prime numbers within n numbers "&n&"= : 1" & var)