Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [computer-science]

Computer science (CS) is the science behind programming. Use for questions related to the more theoretical questions involving programming. Questions of a purely theoretical nature may be off-topic. All CS questions can be asked on https://cs.stackexchange.com/

0 votes
3 answers
55 views

Time complexity analysis of data structures

I got a bit confused about analzsis of data structure basic operation like inserting or deleting. when I am asked about creating an data structure that support deleting operation, or inserting in O(1),...
miiky123's user avatar
  • 117
-2 votes
0 answers
15 views

How to Choose Research Topics as a BTech CSE Student for Masters Applications? [closed]

I'm a second-year BTech CSE student working on research papers to strengthen my masters application abroad. Research isn't my strong suit, and I'm confused about where to start and what topics to ...
Sameena B's user avatar
-1 votes
2 answers
99 views

Comparing array sums with recursion

I had the following exam question in an intro to a CS course. I could not think of a proper solution for this. Write a function in C that accepts two arrays, arr1 and arr2, and their common size, ...
Eden Bager's user avatar
0 votes
1 answer
31 views

CS50 PSet 7 Movies (9.sql )

Why this code doesn't work? It should output 19.325 rows. I only get 4 rows. Meanwhile, it worked well when I used JOIN SELECT DISTINCT name FROM people WHERE id IN ( SELECT person_id FROM ...
Mina Tadros's user avatar
1 vote
0 answers
35 views

File corruption after file copying using python, how to fix it?

The following code is used: Python import os import shutil def backup_files(src_dir, dest_dir): for root, dirs, files in os.walk(src_dir): for file in files: src_file = os....
Kreanto Zhou's user avatar
1 vote
0 answers
81 views

Integer solutions for equation with approximated real variable

I'm trying to solve an equation of the kind: f1(x)*m^2 + f2(x)*m*n + f3(x)*n = 0. f1, f2, f3 are known linear functions with rational coefficients, x is inside the closed known interval [x_0, x_1] of ...
Emu's user avatar
  • 11
-1 votes
1 answer
45 views

Does stack work differently in assembly than how it works in C?

I just started learning assembly code. As far as I understand, when a functions calls in assembly code, the main variables are stored to stack from registers and stored back to registers after ...
uykb's user avatar
  • 11
-1 votes
0 answers
93 views

getting error while npm installing package

`this is my package json file { "name": "transportal", "version": "0.0.0", "scripts": { "ng": "ng", "start"...
Aashutosh Jhanwar's user avatar
0 votes
0 answers
12 views

In SR latch, how do we determine which input's output is considered in state table?

Case 1 - SR Latch using Nand Gate Here the output from above gate's (taking S input) output is considered output of SR Latch Case 2 - SR Latch using Nor Gate Here the output from above gate's (taking ...
androidDeweleper's user avatar
1 vote
0 answers
83 views

Maximum Sum of Vertices in DAG Excluding Directly Connected Vertices

How can I calculate the maximum possible sum of vertices in a weighted DAG excluding vertices directly connected by an edge? This is a vertex selection problem where each vertex has a weight. In this ...
Asher Ross's user avatar
1 vote
1 answer
98 views

How to turn a 16-bit number in one's complement into it's 7-segment display equivalence?

I have a 16-bit integer, in one's complement, and I'm trying to retrieve it's 7-seg display equivalence. Using only bitwise operations. I'm doing it for a Minecraft project/hobby, just trying to build ...
Eduardo Gottert's user avatar
1 vote
0 answers
40 views

Determining the run time of an algorithm solving Latin Square

any help would be appreciated. Here is the problem: https://erich-friedman.github.io/puzzle/latin/ Now, I write some code to solve the problem and want to find the time complexity of the problem, I ...
cong le's user avatar
  • 35
2 votes
1 answer
26 views

UML sequence diagrams: does creating a boundary automatically show it?

my colleagues and I are currently working on a university project about software engineering. At the moment, I am focusing on sequence diagrams and I have a few questions: Is there a standard for ...
Marco Marino's user avatar
2 votes
0 answers
25 views

Allocate cores for a specific process

I want to allocate multiple cores to a specific process so that only that process runs on those cores. Neither Windows system nor anything else should use these cores. Is there a way to do something ...
Vyacheslav1557's user avatar
0 votes
0 answers
25 views

I Have Imagination of Futuristic Computing Scenarios. How Can I Get Involved?

I am currently a backend developer specializing in Java-oriented web services, with a bachelor's degree in Computer Science. After working for a few years, I have become deeply interested in diving ...
alex y's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
300