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

Calculate Difference between current and previous rows in SSIS

How to Calculate Difference between current and previous rows in SSIS then use that result to add a new column to the existing table
Jason312
  • 197
  • 1
  • 1
  • 10
0
votes
1 answer

Quasi-Simple computation in program

I did not know whether I should post this in mathSE or stackoverflow, but since it involves code and some basic algorithms I went for SO. My question comes from a program that I have to do based on this article: Article The problem is that I cannot…
The Law
  • 83
  • 1
  • 14
0
votes
1 answer

How to count word occurrence in sentences in text

I wrote a program that reads from file and do some computation. I have a last function to add. It has to count in how many sentences specific word occurs. Here's the program itself: # -*- coding: utf-8 -*- from sys import argv # importing argv…
r_metal
  • 137
  • 1
  • 1
  • 8
0
votes
1 answer

Simple date computation in C#

do you happen to have a sample code on how to subtract day tomorrow or 2 days from today? And then I will multiply it by a number depending on its reserved value. I am figuring how to operate a hotel checking in and show its price by asking when the…
xyrus the virus
  • 219
  • 1
  • 3
  • 7
0
votes
1 answer

Pumping Lemma Assistance

I recently had an assignment where I was asked to use pumping lemma to show that a language was not regular, and unfortunately got the wrong answer. The language to prove is non-regular is as follows: L = {ai bj ck: i = j or j = k} The definition…
Ben Rogers
  • 45
  • 6
0
votes
1 answer

Dynamic y axis for charts

I am integrating the ios-charts. I want to layout the y-axis of graph dynamically on the basis of json response. For example:- if json contains 50 values, then I will draw 10(50/5)+5 = 15 yaxis values. These 15 values must contains the minimum and…
pkc456
  • 8,350
  • 38
  • 53
  • 109
0
votes
2 answers

{ | M is TM that accept 3 words } (|L(M)|=3)

I'm stuck with this problem { | M is a TM that accepts 3 words} I know how to solve |L(M)|>3 or |L(M)|<3 but when it comes to |L(M)|=3 , I don't know how to proceed!
0
votes
1 answer

How reduction is used to prove hardness through contradiction?

I'm not a student taking a computational complexity course, just interested in the subject. I came across this section: Suppose we have a problem that we've proven is hard to solve, and we have a similar new problem. We might suspect that it is…
rb612
  • 5,280
  • 3
  • 30
  • 68
0
votes
0 answers

How the browser plug-in does the computation?

Suppose, I have installed a browser plug-in/extension in my browser. This plug-in needs to do the computation based on the metadata of a webpage. So, does that use the memory of the user's system for computation? Or some other server like entity is…
ad909
  • 21
  • 1
  • 5
0
votes
2 answers

Trouble computing - Javascript form

I'm very new to Javascript and this website, but I'm looking for help on a project of mine. It's a little rough so far and not complete, but I can't move on until I figure out how to actually get the computations to show up. If I could get help…
0
votes
0 answers

Computation error. Any ideas?

I am having some trouble with one of my sample input values, everything else here is working correctly besides the last input. The problem is to find how many different combinations of $2,$5, and $10 bills can make up the value, here are the sample…
kidchicken
  • 11
  • 3
0
votes
1 answer

Configuring storm cluster for production cluster

We have configured storm cluster with one nimbus server and three supervisors. Published three topologies which does different calculations as follows Topology1 : Reads raw data from MongoDB, do some calculations and store back the result Topology2…
Nageswara Rao
  • 954
  • 1
  • 10
  • 32
0
votes
1 answer

Using Fortran90 and MPI, new to both, trying to use MPI_Gather to collect from a loop 3 different variables in each process

I am new to both Fortran90 and MPI. I have a loop that iterates different based on each individual process. Inside of that, I have a nested loop, and it is here that I make the computations that I desire along with the elements of the respective…
jep9223
  • 1
  • 1
0
votes
1 answer

R computation elapsed time

Maybe someone can explain, for better understanding, why my R code elapsed time is not linear :) url <- c(NA) id <- c(NA) time <- c(NA) j <- 1 l <- 1 id_p <- "" for(i in 1:nrow(cookies_history)){ if(i%%50000==0){ print(i) …
G dar
  • 5
  • 3
0
votes
0 answers

Binary tree on a vector

I want to know this question (only one is correct) A implementation of a binary tree with a vector: a) Only advisable if the tree is a heap b) only advisable if the tree is decision c) We can use a vector if we want to build search trees d) The tree…
StrîkZ
  • 1
  • 1