I'm resting today, don't worry. Tomorrow, back to work.Like I said, it can be addictive. I suppose you could try something like, I'll only post on the forums after I've written one page, or something similar.
}
return 0;
dijkstra(graph, source);
int source = 0;
};
{14, 0, 2, 0, 9, 0}
{0, 0, 0, 6, 0, 9},
{0, 15, 11, 0, 6, 0},
{9, 10, 0, 11, 0, 2},
{7, 0, 10, 15, 0, 0},
{0, 7, 9, 0, 0, 14},
int graph[V][V] = {
int main(void) {
}
}
}
printf("\n");
print_path(parent, v);
printf("distance = %d, path = ", dist[v]);
} else {
printf("unreachable\n");
if (dist[v] == INF) {
printf("Vertex %d: ", v);
for (int v = 0; v < V; v++) {
printf("Source: %d\n\n", source);
}
}
}
parent[v] = u;
dist[v] = dist[u] + graph[u][v];
dist[u] + graph[u][v] < dist[v]) {
dist[u] != INF &&
graph[u][v] > 0 &&
if (!visited[v] &&
for (int v = 0; v < V; v++) {
visited[u] = 1;
}
break;
if (u == -1) {
int u = min_distance(dist, visited);
for (int count = 0; count < V - 1; count++) {
dist[source] = 0;
}
parent[i] = -1;
visited[i] = 0;
dist[i] = INF;
for (int i = 0; i < V; i++) {
int parent[V];
int visited[V];
int dist[V];
void dijkstra(int graph[V][V], int source) {
}
printf("%d", vertex);
}
printf(" -> ");
if (parent[vertex] != -1) {
print_path(parent, parent[vertex]);
}
return;
if (vertex == -1) {
void print_path(int parent[], int vertex) {
}
return min_index;
}
}
min_index = v;
min = dist[v];
if (!visited[v] && dist[v] < min) {
for (int v = 0; v < V; v++) {
int min_index = -1;
int min = INF;
int min_distance(int dist[], int visited[]) {
#define INF INT_MAX
#define V 6
#include <limits.h>
#include <stdio.h>
It's not that hard to write a program to reverse lines of text of anything. This is frankly programming basics that most programmers acquired by spending time and effort when young. And when basics like THAT get outsourced to ChatGPT, small wonder we have vibe programming and people who don't really understand the code that the AI wrote for them.I told ChatGPT to "Write Dijkstra’s shortest-path algorithm in C but upside-down, that is, first the last line, second the penultimate, etc." Why? To see how it looks. I looks funny.
C:} return 0; dijkstra(graph, source); int source = 0; }; {14, 0, 2, 0, 9, 0} {0, 0, 0, 6, 0, 9}, {0, 15, 11, 0, 6, 0}, {9, 10, 0, 11, 0, 2}, {7, 0, 10, 15, 0, 0}, {0, 7, 9, 0, 0, 14}, int graph[V][V] = { int main(void) { } } } printf("\n"); print_path(parent, v); printf("distance = %d, path = ", dist[v]); } else { printf("unreachable\n"); if (dist[v] == INF) { printf("Vertex %d: ", v); for (int v = 0; v < V; v++) { printf("Source: %d\n\n", source); } } } parent[v] = u; dist[v] = dist[u] + graph[u][v]; dist[u] + graph[u][v] < dist[v]) { dist[u] != INF && graph[u][v] > 0 && if (!visited[v] && for (int v = 0; v < V; v++) { visited[u] = 1; } break; if (u == -1) { int u = min_distance(dist, visited); for (int count = 0; count < V - 1; count++) { dist[source] = 0; } parent[i] = -1; visited[i] = 0; dist[i] = INF; for (int i = 0; i < V; i++) { int parent[V]; int visited[V]; int dist[V]; void dijkstra(int graph[V][V], int source) { } printf("%d", vertex); } printf(" -> "); if (parent[vertex] != -1) { print_path(parent, parent[vertex]); } return; if (vertex == -1) { void print_path(int parent[], int vertex) { } return min_index; } } min_index = v; min = dist[v]; if (!visited[v] && dist[v] < min) { for (int v = 0; v < V; v++) { int min_index = -1; int min = INF; int min_distance(int dist[], int visited[]) { #define INF INT_MAX #define V 6 #include <limits.h> #include <stdio.h>
The interesting thing is that ChatGPT doesn't write the algorithm and then reverses it, it writes it directly reversed.It's not that hard to write a program to reverse lines of text of anything. This is frankly programming basics that most programmers acquired by spending time and effort when young. And when basics like THAT get outsourced to ChatGPT, small wonder we have vibe programming and people who don't really understand the code that the AI wrote for them.
Try getting ChatGPT to explain why freebsd-update(8) doesn't work as advertised, which leads to horror stories on these Forums about the lib incompatibilities created by blind upgrades of userland/kernel. One of those 'good ideas' that require thinking that an AI is not really capable of - but any competent programmer should be able to think a bit and connect the dots.
Yeah, nice assumption. How do you verify that this is what ChatGPT actually does?The interesting thing is that ChatGPT doesn't write the algorithm and then reverses it, it writes it directly reversed.
Someone else's math better handleIt's not like checking somebody's math. You kind of have to know some math yourself if you wanna verify that somebody did their calculations correctly.
-Ofast if I can use it Well, at least I use my real name: Alfredo Llaquet Alsina (I add the hyphen so people understand that they are two family names: Alfredo Llaquet-Alsina).Right... There's no such thing as "someone else's math'. Everybody kind of has to agree that 2+2=4, y'know.
When I say "Check someone else's math", I really mean, "Check someone else's calculation steps". If you arrive at different results, one of you is making a mistake somewhere.
Besides, anyone on the Internet can claim that they've been a computer programmer for X number of years. Hell, I can make the same claim as OP.
Ahhh... the way I see it, me and OP were talking about what ChatGPT does behind the scenes to produce a C source file with lines reversed.I'm confused. Why in something being displayed backwards would text processing skills be needed (text processing has nothing to do with buffers--<atomic/threaded read/write comments here>)? -i.e., a list + decrement = backwards. What am I missing?
Screen names probably became "big" because of Snowcrash (hacker culture).
In C, I tried to beat memcmp once (spoiler: I lost). My time probably would be been more productive if I just learned assembly but it was fun.![]()
Kind of easy to see through comments that OP is just messing around.The interesting thing is that ChatGPT doesn't write the algorithm and then reverses it, it writes it directly reversed.
I like them too
They probably are. I'm not an expert. I searched for "ravens" on Pixabay and didn't conduct any further research because I didn't assign any importance to the matter. I like crows too. I think ravens and crows are closely related.From the photo, I thought they were crows
Yes, they are known for harassing in groups any creature that bothers them. If you florp with them, they'll bombard you for generations (according to some videos I watched on YouTube, which, of course, may be lying).they would gather and harass my cat if it went out, and once I saw them harassing a hawk
Even wildlife can appreciate the downsides of smoking, huh?Wrap your heads around this.
Now imagine standing in the park, trying to have a smoke, and you are sourranded by crows harassing you for the cig?
That one is true. They will remember people they don't like for years. There's study from a Washington state university, I think, about it.Yes, they are known for harassing in groups any creature that bothers them. If you florp with them, they'll bombard you for generations (according to some videos I watched on YouTube, which, of course, may be lying).
Yeah, an American spin on a fairly old idea from Japan:![]()
What Restaurant Delivers Food to Tables Using Model Trains?
It has been around since the '50sattackofthefanboy.com
HomoSapiens is the AI frontier model of nature, but crows are the DeepSeek one! Birds have a very compact but powerful brain, especially crows and parrots. They outperform our mind in "computational" density per gram. For this reason, Parrots don't believe we are really intelligent, and they call us Stochastic Brickhead