Questions tagged [notation]

Notation refers to a specific way of writing various concepts, functions, etc. Usually it is introduced to abbreviate complicated expressions and make common idioms more readable.

633 questions
-2
votes
1 answer

Need help making a sum calculation faster in python

Here is a piece of my code with the summation. It includes an integral. all the variables peppered in there have float or integer values. import numpy as np import math import scipy.integrate from mpmath import nsum, inf sum1 = nsum(lambda m:…
user3006887
  • 71
  • 1
  • 8
-2
votes
1 answer

Array pointer notation C++ (when moving array)

I have written this code, which should move my array by 1: // Declare and initialize Array int temp; int dim[5] = { 6, 7, 8, 9, 10 }; int array_size = sizeof(dim) / sizeof(dim[0]); cout << "Array-Size: " << dim[array_size - 1] << endl; // Move by…
ideasia
  • 3
  • 6
-2
votes
1 answer

Mathematical notation or Pseudocode?

At this moment I am concerned about which is the best way to explain an algorithm intuitively. I have try to read some pseudocode an wow it may be complex for some cases (specially for math applications even more than the formulas itself or pure…
-2
votes
1 answer

How to calculate time complexity in Big theta

I'm trying to calculate the time complexity in Big theta. Please help me out with this problem. Q. There are two functions, sub1 and sub2, which have time complexity of θ(4^n), θ(n^4 * log(n)) for each. If so, found out following two questions. Q1.…
Maengsk
  • 1
  • 1
-2
votes
2 answers

Big o notation for a while-loop which use random# generator as a conditions

we have RNG which generate No. between [0.0,1000.0[ in a while loop we count to find out how long does it take to produce a No. < 1.0. code: n =0 while ( RNG1000() >= 1.0){ n =+ } question: what is the O(?)
Bah Man
  • 13
  • 1
-2
votes
1 answer

What does an overline above a graph mean?

[Specifically in this example]]1
user3047661
  • 119
  • 2
  • 8
-2
votes
2 answers

Basic SQL Comparing

There exists a table called Species which includes Sp_name, Sp_woodtype, Sp_maxht (species' max height) and I am asked this question: For each species with the same woodtype (sp_woodtype) compare their max height. The output should include the…
betamech
  • 17
  • 1
  • 7
-2
votes
1 answer

Ordered directional constrained connection of points for maximum triangles

Begin Edit Given a set of points, each defined by latitude and longitude, find an ordered list of directional connections between points within three points that form a triangle such that connecting inner points of that triangle with each other and…
iAmOren
  • 2,760
  • 2
  • 11
  • 23
-2
votes
1 answer

Small float being saved in scientific notation instead of decimal

When I try to declare a float variable with a very small value it changes the notation. Global $interior = 0.00008972 MsgBox(4096, "1", $interior) $file = FileOpen("Balance.txt", 2) FileWrite($file, ""&$interior) FileClose($file) It shows and…
-2
votes
2 answers

what does this notation mean ?

I was reading about k-strong convexity and came a across an equation like this f(x_1) >= f(x_2) + <\Delta f(x_2), x_1-x_2> + (k/2)*(||x_1-x_2||^2) Could some one explain what the notation <> means? Sorry for the errors with latex.
-2
votes
3 answers

Using Javascript .length with dot notation and bracket notation produce different result

I have read about the difference between both: Difference between dot and bracket notation However when I try to put together a simple HTML example using default JavaScript .length to refer to them:
  • a
  • b
Vincent1989
  • 1,593
  • 2
  • 13
  • 25
-2
votes
1 answer

What does the dotting of two string mean in pseudocode?

I'm having trouble understanding the notation of this pseudocode. The line in particular I don't understand is: LeftPart (PartialWord [dot] l, N', limit - 1) What does the dot represent? Thank you.
-2
votes
1 answer

Need help finding Big Oh, c, and No

Need help with these two examples. As I kind of understand Big Oh, but not really the c and No concepts. First one seems pretty straight forward. I'm pretty sure the Big Oh would be O(n^3) but I'm not sure. f(x) = 2n3 + 5n + 2 The next one is the…
A.Phil
  • 1
  • 1
-2
votes
1 answer

Don't really understand the notation

I don't really understand how or what I'm supposed to prove. I've researched into each, but still unclear to me what is expected. Which of the following statements are true? Prove your answers. n² ∈ O(n³) n² ∈ Ω(n³) 2ⁿ ∈ Θ(2n+1) n! ∈…
Jackson Collins
  • 110
  • 2
  • 10
-2
votes
3 answers

Java Stack array - Big O notation

What are the big o notation for this code below. I still couldn't grasp the concept fully. I am supposed to get a thought from experienced coders to give a summary for the big o performance based on this code. import java.util.*; import…