Questions tagged [matrix]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
151 views

Pset3 Tideman: lock_pairs skips middle pair if it creates a cycle

I'm having issues figuring out how to solve this problem without using recursion (I'm not sure how to solve things recursively). Its a program that determines the winner of a Tideman election and I'm ...
0
votes
1answer
185 views

pset6 similarites more distances wrong operations

Problem I am experiencing: I have figured out an algorithm for distances to calculate the edit distance between two strings. The costs in the tuples are correct, but the conditions are not properly ...
0
votes
1answer
96 views

pset6 walkthrough cost matrix

In the second walkthrough video Brian uses two example words, "cat" and "ate" to demonstrate cost indexing of a tuple that lists the number of conversion steps and the last type of conversion made. ...
0
votes
1answer
100 views

What 's the error in my code, it's not working on cs50 ide

my code #include <stdio.h> int main() { char a[4][4]; a[0] = {65, , 65, }; a[1] = {65, , 65, }; a[2] = { , 65, , }; a[3] = {65, , , 65}; } compiler is showing following error : ~/...