Hi, I am working in Matlab, I need help to write KNN algorithm. Please reply.

Member Avatar
Member Avatar
+0 forum 2

Hi, I need help in running a software, thay have plugins in the from of jar files. which I dont know how to run and execute. I have JDK installed. Please suggest. Thank you so much.

Member Avatar
Member Avatar
+0 forum 11

I have a queue class code is given below: struct ListNode { ListNode(int value); int value; ListNode* next; }; ListNode::ListNode(int value): value(value), next(nullptr) {} public class queue { public: queue(); ~queue(); bool Empty() const; int Next() const; void Enqueue(int value); void Dequeue(); void DisplayAll() const; int getP() const; private: // Disable copying to keep the example simple queue(queue const& obj); ListNode* head; ListNode* tail; gcroot<String^> name; // Added this }; queue::queue():head(nullptr), tail(nullptr) {} queue::~queue() { while (head != nullptr) { Dequeue(); } } bool queue::Empty() const { return head == nullptr; } int queue::Next() const { return head->value; } void …

Member Avatar
Member Avatar
+0 forum 5

Hi, I have a discrete event simulator for m/m/1 queue. How can I have a program based on priority queue using M/M/1 model. PLEASE help me to have an idea about priorities and thier implementations

Member Avatar
Member Avatar
+0 forum 15

Hi, I need help in designing a function that would model the arrival of the messages in the queue following poisson distribution. I shall be grateful for this kind help.

Member Avatar
Member Avatar
+0 forum 4

I need your help regarding the message acknowledgement in the queue when the message reaches at the queue. Any help would be highly appreciated. the code for my queue class is; struct ListNode { ListNode(gcroot<message^> msg); gcroot<message^> msg; ListNode* next; }; ListNode::ListNode(gcroot<message^> msg): msg(msg), next(nullptr) {} public class queue { public: queue(); ~queue(); bool Empty() const; void Enqueue(message^); void Dequeue(); void DisplayAll() const; private: // Disable copying to keep the example simple gcroot<String^> bindingkey; queue(queue const& obj); ListNode* head; ListNode* tail; gcroot<String^> name; // Added this }; queue::queue():head(nullptr), tail(nullptr) {} queue::~queue() { while (head != nullptr) { Dequeue(); } } …

Member Avatar
Member Avatar
+0 forum 7

I have queue class as below public class queue { public: queue(); ~queue(); bool Empty() const; void Enqueue(message^); void Dequeue(); void DisplayAll() const; private: gcroot<String^> bindingkey; queue(queue const& obj); ListNode* head; ListNode* tail; }; queue::queue():head(nullptr), tail(nullptr) {} queue::~queue() { while (head != nullptr) { Dequeue(); } } //bool queue::Empty() const //{ // return head == nullptr; //} //String^ queue::Next() const //{ // return head->msg; //} void queue::Enqueue(message^ key) { if (head == nullptr) { head = tail = new ListNode(key); } else { tail->next = new ListNode(key); tail = tail->next; } } void queue::Dequeue() { ListNode* temp = head->next; delete …

Member Avatar
Member Avatar
+0 forum 6

Dear All, I have function that works like this. Here # represnts one word while * is for one alphabet. Can anyone help me changing this code where # is for 0-N words, means it works if at # there is no word between dots, while for * there must be one word, not an alphabet. Any help would be highly appreciated. main(): std::string aa = "usa.#.* "; std::string aa = "usa.weather.u" ; if (wildcmp(aa,rrr)) Console::WriteLine("match found"); else Console::WriteLine("match not found"); function: int wildcmp(const char *wild, const char *string) { // comparing wilcard binding key with routing key const char …

Member Avatar
Member Avatar
+0 forum 30

Hi All, I am working on a program where I want to keep the length of message in bytes to further working on it. the message got this string in it. [CODE] message^ m = gcnew message("usa.weather");[/CODE] I have to keep the length of this argument that is routing key of this message "usa.weather" in bytes. Its so important for me to sort out this today. Please HELP

Member Avatar
Member Avatar
+0 forum 3

Hi, I have used this [CODE]#using <System.dll> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; SortedList<double, String^>^ slist = gcnew SortedList<double, String^>();[/CODE] in one program its working well. But Now when I pasted the same code with all given headers in second program its not being identified there. Errors are coming. 'SortedList' : ambiguous symbol 1>could be 'c:\program files\reference assemblies\microsoft\framework\.netframework\v4.0\system.dll : System::Collections::Generic:: SortedList' 1>'c:\program files\reference assemblies\microsoft\framework\.netframework\v4.0\mscorlib.dll : System::Collections:: SortedList' Any help why this error could be avoided. Thanks in advance for sparing time for me.

Member Avatar
Member Avatar
+0 forum 8

Hi All. I am working on a program where I need help to convert a managed strinf type to unamanaged string to send as argument to function. Any help would be highly appreciated.

Member Avatar
Member Avatar
+0 forum 7

I have a simple query, I am using code for "QUEUE IMPLEMENTATION USING SINGLE LINKED LIST" [url]http://ds4beginners.wordpress.com/2006/12/17/queue-implementation-using-single-linked-list/[/url] for my program but having an issue if you pleas help me. [CODE]public class queue { gcroot<message^> msg; queue* next; public: queue(); queue* enqueue(queue*,message^); queue* dequeue(queue*); void queue_display(queue*); void setbinding(String^); String^ getbinding(void); }object, *head=nullptr, *tail=nullptr;[/CODE] the rest of queue functions are same as in the link . In the main function I have defined these queues.when I tried to insert element is "weather" queue and display it shows the same element in all the queues declared. Can you help me why this happening. …

Member Avatar
Member Avatar
+0 forum 12

I am new to this forum. I need help in defining the same kind of function according to my requirements. as [url]http://www.codeproject.com/Articles/1088/Wildcard-string-compare-globbing[/url] I hope, I 'll get good response. Words are strings which are separated by dots. Two additional characters are also valid i.e:The *, which matches 1 word and the #, which matches 0..N words Example: *.stock.# matches the routing keys usd.stock and eur.stock.dsf but not stock.nasdaq. Your help would be highly appreciated. Sam

Member Avatar
Member Avatar
+0 forum 1

The End.