Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Write a non-deterministic algorithm to find the sum of first n natural numbers..
Jhunjhunuwala
asked
in
Linear Algebra
Apr 10, 2016
603
views
0
votes
0
votes
Jhunjhunuwala
asked
in
Linear Algebra
Apr 10, 2016
by
Jhunjhunuwala
603
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
3
votes
Just output $\frac{n.(n+1)}{2}$.
Non-deterministic algorithm includes deterministic ones too.
Arjun
answered
Apr 10, 2016
by
Arjun
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
1
answer
1
radha gogia
asked
in
Set Theory & Algebra
Oct 5, 2015
913
views
How to find the sum of sqrt of first n natural numbers ?
When searching for the key value 60 in a binary search tree, nodes containing the key values 10, 20, 40, 50, 70, 80, 90 are traversed, not necessarily in the order given. How many different orders are possible in which these key values can occur on the search path from the root node containing the value 60?
radha gogia
asked
in
Set Theory & Algebra
Oct 5, 2015
by
radha gogia
913
views
0
votes
0
votes
2
answers
2
nehab.sairam
asked
in
Algorithms
Jul 18, 2015
3,257
views
Let s be a sorted array of n integers. Let t(n) denote the time taken for the most efficient algorithm to determined if there are two elements with sum less than 1000 in s.What will be the time complexity???????
nehab.sairam
asked
in
Algorithms
Jul 18, 2015
by
nehab.sairam
3.3k
views
algorithms
sorting
time-complexity
0
votes
0
votes
0
answers
3
M_Umair_Khan42900
asked
in
Theory of Computation
Dec 29, 2022
237
views
For each of the following language, if the language is regular, write down the corresponding regular expression. Else, prove that the language is not regular. a) (0²ⁿ | n ≥ 1) Answer: b) String over the decimal alphabets (0,1,2....9) with characters in sorted orders. c) The set of all even binary numbers
M_Umair_Khan42900
asked
in
Theory of Computation
Dec 29, 2022
by
M_Umair_Khan42900
237
views
theory-of-computation
regular-language
finite-automata
0
votes
0
votes
0
answers
4
PranayKumar
asked
in
Computer Networks
Jun 27, 2023
429
views
In Go-Back-N protocol (with an ACK/NAK response time within three frame transmissions) there are constantly new frames to be transmitted. The frames are numbered with 3 bits and all numbers 0, 1, . . , 7 are used. The length of the transmission window is 2 (and the length of the receive window is 1 due to Go-Back-N). The first frame has the number 0. Errors occur in the 3rd and 9th transmission. Give the transmission window and receive window for the first 18 frames, and the numbering of the frames.
PranayKumar
asked
in
Computer Networks
Jun 27, 2023
by
PranayKumar
429
views
computer-networks
go-back-n
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Discrete Mathematics
(7.1k)
Probability
(1.4k)
Linear Algebra
(1.1k)
Calculus
(792)
Optimization
(0)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy