Questions tagged [computation]

Computation is paramount to the discipline of computer science, and deals with the type and use of computing technology in information processing, in particular, in the context of an algorithm, or a protocol.

From Wiki

In the theory of computation, a diversity of mathematical models of computers have been developed. Typical mathematical models of computers are the following:

  • State models including Turing machine, push-down automaton, finite state automaton, and PRAM
  • Functional models including lambda calculus
  • Logical models including logic programming
  • Concurrent models including actor model and process calculi
404 questions
0
votes
1 answer

Matlab: How does Simulink simulate model with block computation time much longer than clock time period?

I have a Simulink model with master clock value of 4410 Hz. I know for a fact that computation time of some algorithms (e.g. cubic spline interpolation on a 4410 sample frame being accumulated in real-time) is much longer than the master time period…
John Petrucci
  • 323
  • 3
  • 5
0
votes
1 answer

Output wont display properly for resultant matrix

I wrote this program to add two 3x3 matrices; can someone tell me why my output is yielding 2 resultant matrices??? package programExam; import java.io.*; import java.util.*; import java.io.File.*; import java.util.Scanner; public class progEx { …
aEX
  • 3
  • 3
0
votes
1 answer

is ruby assoc array a hashtable internally? what is lookup time complexity?

aa = [ %w[Someone 1], %w[Bla 2]] p aa.assoc("Someone") p aa.assoc("Bla") # Result: # ["Someone", "1"] # ["Bla", "2"] p aa.rassoc("1") p aa.rassoc("2") # Result: # ["Someone", "1"] # ["Bla", "2"] is ruby assoc array a hashtable internally?…
BufBills
  • 8,005
  • 12
  • 48
  • 90
0
votes
1 answer

nodejs api for philips hue power consumption

Is there a way we can compute the energy/power consumption of the Philips hue? Any nodejs api which I can use to showcase the same. I searched in the internet, I did not find any resource which has information about computing the energy/power…
0
votes
2 answers

can map and reduce jobs be on different machines?

i'm working or a very distinct solution on computational offloading, i can do that very well with a custom programming in c++/java but i'm in a search of same can be done in hadoop or any other framework ? i searched a lot but nothing worthy i found…
Amey Jadiye
  • 3,066
  • 3
  • 25
  • 38
0
votes
1 answer

How to understand big o time of a given code

I am observing a built in function in Matlab, which is "boundary". It was introduced in 2014b and it is to compute the boundary for a given set of points. Nevertheless, I need to know big o (time complexity) of this function. How can I understand…
mexes
  • 23
  • 7
0
votes
1 answer

Don't always get expected results

The following is the code of a simple tidal-transport model that I have included OpenMP to parallelize the computation: !$OMP PARALLEL SHARED(w, u, v, nthreads, chunk) PRIVATE(i, j, tid) do it = 1, itlast !$OMP DO SCHEDULE(DYNAMIC, CHUNK) do…
Wai Kiat
  • 789
  • 1
  • 8
  • 13
0
votes
4 answers

javascript simple addition computation

im new to javascript. i dont know what's wrong with my code num1: num2: answer: and answer:
0
votes
1 answer

C# Value Computation with Principal, Number of Payment, Interest

I'm creating an auto calculation of payment. But I don't know the formula of it. When the calculate payment button is click, it will auto compute the principal, number of payments and interest then it will output on payment. Please see the…
truelogicINC
  • 119
  • 2
  • 14
0
votes
1 answer

OpenMP using loops and array reductions

I have written a program as follows: #include "omp.h" #include "stdio.h" int main() { int i, j, cnt[] = {0,0,0,0}; #pragma omp parallel { int cnt_private[] = {0,0,0,0}; #pragma omp for private(j) for(int i = 1 ;…
deba123
  • 15
  • 5
0
votes
1 answer

computing the bounding rectangle of planar geometry in 3D space

As an input, I receive some planar, triangulated geometry. Now, I need to compute the four coordinates of the corners of the bounding rectangle. Any Ideas?
Matthias
  • 31
  • 1
0
votes
1 answer

Node.js compute server

I want to build a compute server with node.js Basically the node.js will act as a front end for the server infrastructure. When it gets a requests, it will place the compute request on a queue, the queue may or may not be on the same server. The…
mfc
  • 3,018
  • 5
  • 31
  • 43
0
votes
0 answers

How to add computed properties to a Meteor Collection

I want to add some dynamically computed properties to a server side collection and then send this combined collection to the client. Lets say I have a simple page where one could post questions and then attach answers to those. There are two…
0
votes
0 answers

Applying calculations on large data set

I'm currently optimizing our data warehouse and processes which uses it and i'm looking for some suggestions. The problem is that i'm not sure about the calculations on retrieved data. For make things more clearer for example we have following data…
0
votes
0 answers

Turing Degree and Local Contest Questions?

I ran into a olympiad question on Practical Computer Knowledge. For A ⊆ ℕ we have a = degT(A) = {B | B ≡T A} and D = {degT(A) | A ⊆ ℕ}. For (D, ≤) that has A ≤T B iff a ≤ b. Which of the following is false: (D,≤) is a distributive lattice (D,≤)‌…
user4733521