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
-1
votes
1 answer

Which way is best to solve: T(n)=4T(n/5)+(log(n√n))^5?

I need to find the asymptotic behavior of T(n) = 4T(n/5) + (log(n √n))5, in the form Θ(…). I know of three ways: recursion tree master method recurrence Which way is easiest? And, how I can be sure I got the right answer?
mukul dhiman
  • 37
  • 1
  • 6
-1
votes
1 answer

Using logical operators in R, A quick question

I am working with a data set in R called "USArrests." I want to obtain those states whose murder rate is >8, assault rate >170, and rape rate >21. Murder Assault UrbanPop Rape states Alabama 13.2 236 58 21.2 …
ts3n_mt
  • 67
  • 5
-1
votes
2 answers

C++ linked list notation, what is the difference?

I just want to know if there is and difference between these two notations: First example: struct node{ int data; node* next; }; void insert(node* list){ node* n,* last; last = list; while(last) …
Demigod98
  • 35
  • 7
-1
votes
2 answers

What is this equation mean N(1 <= N <= 100)

I am not so good in math and I have an interview question to answer but I can`t understand this equation: the interview question is: write a function that, given an integer N(1 <= N <= 100) returns array containing N unique integer that sum up to…
Jason Nues
  • 19
  • 2
  • 8
-1
votes
4 answers

confused over js notation when calling functions

The accepted answer below explains why checkit(x) doesn't work. I'm a little confused by the following notation: const array1 = [5, 12, 8, 130, 44]; function checkit(x){ return x == 8;} const found = array1.find(element => element > 10); const…
DCR
  • 14,737
  • 12
  • 52
  • 115
-1
votes
2 answers

Flex real type definition in scientific and engineering notation in c++

I'm defining a real type and I'm using strtod for the exponential way even though is untested and don't really know if it works but more imporantly I would like to know if there is any built in function like strtod for engineering notation and if…
d0pe
  • 573
  • 4
  • 9
  • 23
-1
votes
1 answer

MATCH function - How to use a string as a range parameter

I need to create a generic formula to get a value from a MATCH command but I don't know exactly where the range of data is. I can not name the range. The MATCH function does not work with a string as a range parameter. Final result like…
-1
votes
1 answer

Unwanted Scientific Notation in MS Access

I'm encountering a very strange problem with MS Access. I have some VBA code used on a password reset form. The code hashes the input password and then saves the hash to a table of users. Here's a relevant snippit: If newPW1 = newPW2 Then MsgBox…
Evis03
  • 17
  • 1
  • 8
-1
votes
3 answers

complexity class of functions

What would these statements mean if f(n) and g(n) are functions over natural numbers? g(n) is in Θ(f(n)). and An algorithm is in the complexity class Θ(f(n)).
wick123
  • 17
  • 4
-1
votes
3 answers

How to use sapply to divide different rows for each column

I'm a bit new at R, but I am trying to do something very simple using sapply because I will need to do it a lot. Say that you have many variables for 5 years, and want to divide the fifth row's values by the first row's for each of the columns at…
Mia
  • 1
-1
votes
1 answer

Initializing an array using pointer notation

Is it possible to initialize an array using pointer notation from another array? To clarify, if you can use sizeof(*table) to return the size of a row, why does it not work to assign a row of a specific table? Is there some way to use double…
Eric
  • 59
  • 6
-1
votes
1 answer

Discrete Math Big O Notation

I'm studying for my discrete math class and I'm starting to grasp the idea of big O notations a little better and was successful in proofing a few question using the definition of f(x) is O(g(x)). How do I proof that question is not big O using the…
Newbie
  • 21
  • 2
-1
votes
1 answer

Does organizing variables in structs have any pitfalls

There is an exisiting C-project with some modules. Each module has some global variables and some module global variables. We have naming conventions like MODULENAME_varname for a global variable declared by a module and Modulename_varname for a…
floquet22
  • 323
  • 2
  • 15
-1
votes
2 answers

Math: What do vertical numbers in brackets represent?

My prof introduced a concept that required use of a vector, which he represented as follows (imagine there is only one pair of brackets below, tall enough to encapsulate both terms; I don't have the rep to paste an image and don't know how to format…
Adam
  • 1
  • 1
-1
votes
1 answer

Reading data from a matrix using pointer notation

A program I am trying to create must ask for a user input to the size of a matrix, and then read in data from a file to put into said matrix. The only issue is that the information can only be input with pointers and can only use pointer arithmetic.…
Jsosa6
  • 31