Questions tagged [evaluation]

Anything related to evaluation of expressions, i.e. the process used to determine the value of expressions in a running program.

What is it?

Evaluation is about rules, algorithms and strategies used for the evaluation of expressions or the computation of evaluation functions.

Related tags

  • The tag may be used more specifically for the execution or invocation of evaluations.
  • For more specific questions use tags such as for example

See also:

1334 questions
-3
votes
1 answer

_Alignof with operand of variable length array type: is there a contradiction in the standard?

C2x, 6.5.3.4 The sizeof and _Alignof operators, Semantics, 2 (emphasis added): If the type of the operand is a variable length array type, the operand is evaluated; otherwise, the operand is not evaluated and the result is an integer…
pmor
  • 5,392
  • 4
  • 17
  • 36
-3
votes
1 answer

Evaluating list with operators

import operator ops = { '+' : operator.add, '-' : operator.sub, '*' : operator.mul, '/' : operator.truediv } n = input() li = [n.split()] li[0,2,4,6,8] = int(li[0,2,4,6,8]) li[1,3,5,7] = ops(li[1,3,5,7]) print(li) I used this code…
-3
votes
2 answers

Worst time complexity of Linear search O(n)

I am trying to write a report where I evaluate the time complexity of an algorithm I have designed, I know for sure that it's complexity is O(n). From what I got from Wikipedia, the best case would be O(1), if I have understood correctly it means…
jaymartines
  • 35
  • 1
  • 4
-3
votes
3 answers

How to make the C++ compiler to follow the same precedence, associativity and order of evaluation that C# has in the this assignment statement?

Consider the following piece of code: int x = 1; int y = 2; y = x + (x = y); When this runs in C#, the variables end up assigned with these values: x = 2 y = 3 On the other hand, when the same runs in C++, the variables end like this: x = 2 y =…
Lesair Valmont
  • 796
  • 1
  • 8
  • 15
-3
votes
1 answer

How does c++ evaluate assignment operators (if statement)

Consider the following int main() { int a = 8; int b = 10; while (true) { if (a /= 2 && b < 12) { b++; std::cout << b << std::endl; } else break; } return 0; } Now c++ is not my…
JohEker
  • 627
  • 5
  • 13
-4
votes
3 answers

performance evaluation for a php web project

How to test my php search engine project ? Client side Minimum browser requirement How faster the website is? performance Any tool available for that???
-4
votes
1 answer

How to evaluate Machine Learning Hackathon Submissions?

I recently conducted a small hackathon , not on a platform like kaggle , but only provided the participants with the training data, and the test data without the true labels. Is there a way in which I can evaluate their submissions?
-4
votes
1 answer

How are the pre and post increment / decrement operators are evaluated in C++ when they happen to occur repeatedly in a single cout statement?

What is execution strategy that the C++ runtime adopts to produce the output 4545 when executing the below given code. #include using namespace std; int main() { int a=5; cout <
-4
votes
1 answer

Why >= evaluation does not work Python

">=" seems does not work. When fixedx = 100 and len(img[0]) is 100, the code does not execute the printing statement and change the value of fixedx to 99 Both variables are integers. Is there any other way to do the comparison in…
Mandary
  • 45
  • 1
  • 7
-5
votes
2 answers

Groovy as a substitute for Java when using BigDecimal?

I have just completed an evaluation of Java, Groovy and Scala. The factors I considered were: readability, precision The factors I would like to know: performance, ease of integration I needed a BigDecimal level of precision. Here are my…
geejay
  • 5,440
  • 8
  • 50
  • 60
-5
votes
1 answer

Python if(True or False) is sometimes evaluated to False

I have encountered a weird problem with following Python (2.7.3) script. Sometimes when e.g. a = True and b = False the subsequent if-clause evaluates to False and the code inside it will not be run. It always works the first time when either a, b…
user1534160
  • 23
  • 2
  • 6
-6
votes
2 answers

Performance Evaluator in C#

I need to develop an evaluation tool using C# that will run on the system for hours and then will show the overal performance of the system. The system is supposed to run a service and we want to evaluate how this service is affecting the…
esa
  • 87
  • 3
  • 9
-7
votes
2 answers

Why does f(21) evaluate the function for x=2?

The statement of the exercise is this one: And the solutions is this one: I can not understand how the function was evaluated for f=2 and f=3. Why is it evaluated as f(21) and not f(2)?
-9
votes
1 answer

What value does the empty statement evaluate to?

My very fine question is: in JavaScript, what value does the empty statement evaluate to? This is the empty statement: ; ...and if I evaluate it, I get undefined. console.log(eval(';')) // 'undefined' However, here is another empty statement…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
1 2 3
88
89