menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
C programming: loading a dictionary into a trie data structure. Why am I segfaulting?
Ask a Question
Questions
Unanswered
Tags
Ask a Question
C programming: loading a dictionary into a trie data structure. Why am I segfaulting?
asked
Jan 19, 2017
199k
views
5
votes
C programming: loading a dictionary into a trie data structure. Why am I segfaulting?
Computers & Tech
high-school
Delana
asked
by
Delana
8.3k
points
answer
comment
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
5
votes
// initialize root code c = fgetc(dictptr); while (c != EOF) { if (c != '\\') { // traverse tree code } else { // finish word code } c = fgetc(dictprt); }
// finish word code
hope it helps
Khayyam
answered
Jan 24, 2017
by
Khayyam
7.9k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 28, 2024
116k
views
I need help with the question below. import java.util.*; public class TreeExample2 { public static void main (String[] argv) { // Make instances of a linked-list and a trie. LinkedList intList = new LinkedList
Hardanger
asked
May 28, 2024
by
Hardanger
8.8k
points
Computers & Tech
college
1
answer
4
votes
116k
views
asked
Jul 23, 2024
88.5k
views
using the trie method to store the words for the decryption process, what is the runtime for reading a single word in the decryption program? let be the number of nodes, be the number of reads, be the
Chank
asked
Jul 23, 2024
by
Chank
8.2k
points
Computers & Tech
high-school
1
answer
2
votes
88.5k
views
asked
Dec 25, 2024
57.1k
views
A project has been defined to contain the following activites, alengwithter trie brruste their completion. What is the critical path?
Nick Pearce
asked
Dec 25, 2024
by
Nick Pearce
7.9k
points
Mathematics
high-school
1
answer
2
votes
57.1k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org