4,469 questions
0
votes
0
answers
31
views
Computing the dot product of a matrix in MatLAb
I am trying to compute the dot product of a matrix in Matlab. The algorithms in each problem were generated using this website.
To do so, I am required to use the function I created in the previous ...
-1
votes
2
answers
47
views
How to be sure I am implementing/simulating a paper/algorithm correctly? [closed]
Since most of the papers, in computer-science/machine-learning, do not provide the code-base they have used to experiment and provide bare algorithms. I have to re-implement them to benchmark with my ...
-3
votes
1
answer
90
views
Understanding when a hazard in MIPS occurs
I have a question regarding these two instructions:
lw r2, 10(r1)
lw r1, 10(r2)
Is there a hazard here, do I need stalls in between two of them?
I want to know if any kind of hazard happens here? I ...
-2
votes
2
answers
158
views
Why am I still getting, "You didn't give me a valid value, please try again! after entering the correct color? [closed]
colors_list = []
while True:
user_input = input("Enter a color to add to the list(or type 'done' to finish): ")
if user_input.lower() == 'done':
break
colors_list.append(...
1
vote
0
answers
106
views
Angular 18 SSR with Strict CSP CSS issue
I'm working on an Angular 18 application that uses SSR with separate browser and server builds (built via “ng build && ng run myapp:server” and served with “node dist/myapp/server/main.js”). ...
0
votes
0
answers
46
views
Infinite execute in A* for 8 puzzle
This is the hint of my 8 puzzle problem (Tells player which tile they should move in this state). I tried to use the current board that the player are playing as an input(2D array) but it always ...
3
votes
2
answers
211
views
Trying to understand how to map/approach solving a combinatorial optimization problem
I have a bag of scale weights and some pressure plates that need to be fully pressed.
After distributing all the weights there is a penalty for each plate that isn't completely pressed down.
The base ...
0
votes
2
answers
51
views
Calculating storage space between two memory addresses
If a byte addressable RAM occupies the hexadecimal addresses AOOO to BFFF, then how many KB of storage space is available?
I understand A000 and BFFF to be 16 bit numbers (2 bytes). So each address ...
2
votes
0
answers
48
views
Data structure where pairs of parents are linked to children
I'm looking to make something where each parent, although items that can be made individually, must be linked with some other specific element to create a child node.
For example, you could have ...
0
votes
1
answer
56
views
MESI Protocol State Transition if Index Bits are Same but Tags differ
I'm trying to solve a MESI Cache problem. I have four processors (P0, P1, P2, P3) each with 4 states set to Invalid. Offset bits are to be ignored. If I read on P0 on address 11010 with two index bits ...
3
votes
0
answers
61
views
I have problem with model.fit() function, with its arguments
I'm trying to train a CNN model with images in size 256*256, I will be using this model for my convolutional neural network that will be used to work on old art images.
I also have different number of ...
1
vote
0
answers
71
views
Is the time complexity of Levenberg-Marquadt algorithm polynomial?
I'm trying to use Scipy's least_squares function and the documentation says that least_squares uses the Levenberg-Marquadt algorithm.
Method ‘lm’ (Levenberg-Marquardt) calls a wrapper over least-...
0
votes
0
answers
43
views
Understanding the Performance Benefits of CPU Caches When Cache Line Fetch Latency Equals Main Memory Access Time
I'm trying to grasp the performance advantages of CPU caches, particularly in scenarios where fetching a cache line (e.g., 64 bytes) from main memory to the cache incurs the same latency as directly ...
-1
votes
1
answer
112
views
What does "trap entry point" means?
From Chapter 2 (The Popek/Goldberg Theorem) in Hardware and Software Support for Virtualization - Synthesis Lectures on Computer Architecture,
... consider what an operating system for such an ...
0
votes
1
answer
60
views
On the shader code, why we can't read variables allocated in process memory(e.g. RAM)?
As far as I know, we can read only data in video memory.
So when we want to read data on process memory, we should copy the data to video memory by using Render Target or SSBO so the shader can read.
...